Class: StarlarkCompiler::AST::String

Inherits:
Node
  • Object
show all
Defined in:
lib/starlark_compiler/ast.rb

Constant Summary

Constants inherited from Node

Node::TYPE

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(str) ⇒ String

Returns a new instance of String.



101
102
103
# File 'lib/starlark_compiler/ast.rb', line 101

def initialize(str)
  @str = str
end

Instance Attribute Details

#strObject (readonly)

Returns the value of attribute str.



100
101
102
# File 'lib/starlark_compiler/ast.rb', line 100

def str
  @str
end