Skip to content

Commit

Permalink
remove some remnant comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dbgrandi committed May 29, 2016
1 parent 90ee654 commit fdf91d1
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions lib/danger/danger_core/dangerfile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,15 @@ def to_s
# a reference to this Dangerfile
def init_plugins
plugin_classes = ObjectSpace.each_object(Class).select { |klass| klass < Danger::Plugin }

@plugins = plugin_classes.map do |klass|
pluginn = klass.new(self)
next if pluginn.nil?
plugin = klass.new(self)
next if plugin.nil?

self.singleton_class.instance_eval { attr_reader pluginn.class.instance_name.to_sym }
instance_variable_set("@#{pluginn.class.instance_name}", pluginn)
pluginn
name = plugin.class.instance_name
self.singleton_class.instance_eval { attr_reader name.to_sym }
instance_variable_set("@#{name}", plugin)
plugin
end
p "pluginsssss"
p @plugins.class
end

# Iterates through the DSL's attributes, and table's the output
Expand Down

0 comments on commit fdf91d1

Please sign in to comment.