Class: Poetics::Syntax::String

Inherits:
Value show all
Defined in:
lib/poetics/syntax/literal.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#column, #line

Instance Method Summary collapse

Methods inherited from Value

#to_sexp

Methods inherited from Node

#to_sexp

Constructor Details

#initialize(line, column, text) ⇒ String

Returns a new instance of String.



55
56
57
58
# File 'lib/poetics/syntax/literal.rb', line 55

def initialize(line, column, text)
  super
  @value = text
end

Instance Attribute Details

#valueObject

Returns the value of attribute value.



53
54
55
# File 'lib/poetics/syntax/literal.rb', line 53

def value
  @value
end

Instance Method Details

#sexp_nameObject



60
61
62
# File 'lib/poetics/syntax/literal.rb', line 60

def sexp_name
  :string
end