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.
221 222 223 224 |
# File 'lib/command-set/structural.rb', line 221 def initialize(decorate, context) super(decorate) @context = context end |
Instance Method Details
#decoration(terms, visitor) ⇒ Object
226 227 228 |
# File 'lib/command-set/structural.rb', line 226 def decoration(terms, visitor) visitor.subject_context << @context end |