lib/danger/plugin_support/plugin.rb in danger-0.10.0 vs lib/danger/plugin_support/plugin.rb in danger-0.10.1
- old
+ new
@@ -30,7 +30,18 @@
end
def self.inherited(plugin)
Plugin.all_plugins.push(plugin)
end
+
+ private
+
+ # When using `danger local --pry`, every plugin had an unreasonable
+ # amount of text output due to the Dangerfile reference in every
+ # plugin. So, it is filtered out. Users will start out in the context
+ # of the Dangerfile, and can view it by just typing `self` into the REPL.
+ #
+ def pretty_print_instance_variables
+ super - [:@dangerfile]
+ end
end
end