Class: RedSnow::ReferenceNode

Inherits:
BlueprintNode show all
Defined in:
lib/redsnow/blueprint.rb

Overview

Blueprint AST Reference node

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id) ⇒ ReferenceNode

Returns a new instance of ReferenceNode.



23
24
25
# File 'lib/redsnow/blueprint.rb', line 23

def initialize(id)
  @id = id
end

Instance Attribute Details

#idString

identifier of the reference

Returns:

  • (String)

    the current value of id



19
20
21
# File 'lib/redsnow/blueprint.rb', line 19

def id
  @id
end