class SimpleCommander::HelpFormatter::Context
Public Class Methods
new(target)
click to toggle source
# File lib/simple_commander/help_formatters.rb, line 8 def initialize(target) @target = target end
Public Instance Methods
decorate_binding(_bind)
click to toggle source
No-op, override in subclasses.
# File lib/simple_commander/help_formatters.rb, line 19 def decorate_binding(_bind) end
get_binding()
click to toggle source
# File lib/simple_commander/help_formatters.rb, line 12 def get_binding @target.instance_eval { binding }.tap do |bind| decorate_binding(bind) end end