Class: Crokus::IntLit

Inherits:
Literal show all
Defined in:
lib/crokus/ast.rb

Instance Attribute Summary

Attributes inherited from Literal

#tok

Instance Method Summary collapse

Methods inherited from Literal

#initialize, #to_s

Methods inherited from Ast

#accept, #str

Constructor Details

This class inherits a constructor from Crokus::Literal

Instance Method Details

#to_iObject



429
430
431
# File 'lib/crokus/ast.rb', line 429

def to_i
  tok.val.to_i
end