Object that wraps a block, which is instance execed in the provided context when called.
Public Class methods
new(block)
[show source]
# File lib/rodish/plugins/_context_sensitive_help.rb 13 def initialize(block) 14 @block = block 15 end
Public Instance methods
call(context)
[show source]
# File lib/rodish/plugins/_context_sensitive_help.rb 17 def call(context) 18 context.instance_exec(&@block) 19 end