Class: Nemo::Visitors::Visitor

Inherits:
Wee::Component
  • Object
show all
Extended by:
Util::Accessors
Defined in:
lib/nemo/visitors/visitor.rb

Direct Known Subclasses

Editor, Viewer

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Util::Accessors

bool_accessor, call_accessor, proc_accessor

Constructor Details

#initialize(metaobject) ⇒ Visitor

Returns a new instance of Visitor.



8
9
10
11
12
# File 'lib/nemo/visitors/visitor.rb', line 8

def initialize(metaobject)
  super()
  @metaobject = metaobject
  @viewer = false
end

Instance Attribute Details

#metaobjectObject

Returns the value of attribute metaobject.



5
6
7
# File 'lib/nemo/visitors/visitor.rb', line 5

def metaobject
  @metaobject
end