class Orbacle::Node
Attributes
location[RW]
params[R]
type[R]
Public Class Methods
new(type, params, location = nil)
click to toggle source
# File lib/orbacle/node.rb, line 5 def initialize(type, params, location = nil) @type = type raise if !params.is_a?(Hash) @params = params @location = location end
Public Instance Methods
==(other)
click to toggle source
# File lib/orbacle/node.rb, line 15 def ==(other) @type == other.type && @params == other.params end
to_s()
click to toggle source
# File lib/orbacle/node.rb, line 19 def to_s "#<#{self.class.name}:#{self.object_id} @type=#{@type.inspect}>" end