Class: RedSnow::ReferenceNode Abstract

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

Overview

This class is abstract.

Blueprint AST Reference node

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id) ⇒ ReferenceNode

Returns a new instance of ReferenceNode.



21
22
23
# File 'lib/redsnow/blueprint.rb', line 21

def initialize(id)
  @id = id
end

Instance Attribute Details

#idString

identifier of the reference

Returns:

  • (String)

    the current value of id



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

def id
  @id
end