Class: Awkward::Visitor::Node

Inherits:
Struct
  • Object
show all
Defined in:
lib/awkward/visitor.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(object) ⇒ Node

Returns a new instance of Node.



4
5
6
# File 'lib/awkward/visitor.rb', line 4

def initialize object
  super(object, object.class.name)
end

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



3
4
5
# File 'lib/awkward/visitor.rb', line 3

def name
  @name
end

#objectObject

Returns the value of attribute object

Returns:

  • (Object)

    the current value of object



3
4
5
# File 'lib/awkward/visitor.rb', line 3

def object
  @object
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



3
4
5
# File 'lib/awkward/visitor.rb', line 3

def value
  @value
end