Class: Interscript::Node
- Inherits:
-
Object
- Object
- Interscript::Node
- Defined in:
- lib/interscript/node.rb
Defined Under Namespace
Classes: AliasDef, Dependency, Document, Group, Item, MetaData, Rule, Stage, Tests
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize ⇒ Node
constructor
A new instance of Node.
- #to_hash ⇒ Object
Constructor Details
#initialize ⇒ Node
Returns a new instance of Node.
3 4 5 |
# File 'lib/interscript/node.rb', line 3 def initialize raise NotImplementedError, "You can't construct a Node directly" end |
Instance Method Details
#==(other) ⇒ Object
7 8 9 |
# File 'lib/interscript/node.rb', line 7 def ==(other) self.class == other.class end |
#to_hash ⇒ Object
11 12 13 14 15 |
# File 'lib/interscript/node.rb', line 11 def to_hash { :class => self.class.to_s, :question => "is something missing?" } end |