Class: Command::ContextBoundary
- Defined in:
- lib/command-set/structural.rb
Instance Method Summary collapse
- #decoration(terms, visitor) ⇒ Object
-
#initialize(decorate, context) ⇒ ContextBoundary
constructor
A new instance of ContextBoundary.
Methods inherited from SetItem
Constructor Details
#initialize(decorate, context) ⇒ ContextBoundary
Returns a new instance of ContextBoundary.
220 221 222 223 |
# File 'lib/command-set/structural.rb', line 220 def initialize(decorate, context) super(decorate) @context = context end |
Instance Method Details
#decoration(terms, visitor) ⇒ Object
225 226 227 |
# File 'lib/command-set/structural.rb', line 225 def decoration(terms, visitor) visitor.subject_context << @context end |