Class: TypedRb::Model::TmString

Inherits:
Expr show all
Defined in:
lib/typed/model/tm_string.rb

Overview

strings

Instance Attribute Summary collapse

Attributes inherited from Expr

#col, #line, #node, #type

Instance Method Summary collapse

Methods inherited from Expr

#check_type

Constructor Details

#initialize(node) ⇒ TmString

Returns a new instance of TmString.



9
10
11
12
# File 'lib/typed/model/tm_string.rb', line 9

def initialize(node)
  super(node, Types::TyString.new(node))
  @val = node.children.first
end

Instance Attribute Details

#valObject

Returns the value of attribute val.



8
9
10
# File 'lib/typed/model/tm_string.rb', line 8

def val
  @val
end