Class: Trope::Language::IntegerLiteral

Inherits:
Literal
  • Object
show all
Defined in:
lib/trope/language/integer_literal.rb

Overview

An integer.

Instance Method Summary collapse

Methods inherited from Node

#elements, #elements_with_treetop_nodes

Instance Method Details

#valueObject

The value as a Ruby object.



10
11
12
# File 'lib/trope/language/integer_literal.rb', line 10

def value
  super.to_i
end