Class: Command::SetItem

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/command-set/structural.rb

Direct Known Subclasses

ContextBoundary

Instance Method Summary collapse

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