Class: Command::SetItem
- Inherits:
-
Object
- Object
- Command::SetItem
- Extended by:
- Forwardable
- Defined in:
- lib/command-set/structural.rb
Direct Known Subclasses
Instance Method Summary collapse
- #decoration(terms, visitor) ⇒ Object
- #each_command(terms, visitor) ⇒ Object
-
#initialize(decorates) ⇒ SetItem
constructor
A new instance of SetItem.
- #visit(terms, visitor) ⇒ Object
Constructor Details
#initialize(decorates) ⇒ SetItem
Returns a new instance of SetItem.
200 201 202 |
# File 'lib/command-set/structural.rb', line 200 def initialize(decorates) @decorated = decorates end |
Instance Method Details
#decoration(terms, visitor) ⇒ Object
206 |
# File 'lib/command-set/structural.rb', line 206 def decoration(terms, visitor); end |
#each_command(terms, visitor) ⇒ Object
208 209 210 211 |
# File 'lib/command-set/structural.rb', line 208 def each_command(terms, visitor) decoration(terms, visitor) return @decorated.each_command(terms, visitor) end |
#visit(terms, visitor) ⇒ Object
213 214 215 216 |
# File 'lib/command-set/structural.rb', line 213 def visit(terms, visitor) decoration(terms, visitor) return @decorated.visit(terms, visitor) end |