Class: Interscript::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/interscript/node.rb

Direct Known Subclasses

AliasDef, Dependency, Group, Item, MetaData, Rule, Tests

Defined Under Namespace

Classes: AliasDef, Dependency, Document, Group, Item, MetaData, Rule, Stage, Tests

Instance Method Summary collapse

Constructor Details

#initializeNode

Returns a new instance of Node.

Raises:

  • (NotImplementedError)


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_hashObject



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