class Rodish::Plugins::ContextSensitiveHelp_::ContextHelp

  1. lib/rodish/plugins/_context_sensitive_help.rb
Superclass: Object

Object that wraps a block, which is instance execed in the provided context when called.

Methods

Public Class

  1. new

Public Instance

  1. call

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