class Interscript::Node::AliasDef
Attributes
data[RW]
doc_name[RW]
name[RW]
Public Class Methods
new(name, data)
click to toggle source
# File lib/interscript/node/alias_def.rb, line 4 def initialize(name, data) data = Interscript::Node::Item.try_convert(data) @name = name @data = data end
Public Instance Methods
==(other)
click to toggle source
Calls superclass method
Interscript::Node#==
# File lib/interscript/node/alias_def.rb, line 10 def ==(other) super && self.name == other.name && self.data == other.data end
to_hash()
click to toggle source
# File lib/interscript/node/alias_def.rb, line 16 def to_hash { :class => self.class.to_s, :name => @name, :data => @data.to_hash } end