class MODL::Parser::Parsed::ParsedNumber
Class to represent a parsed grammar object
Attributes
num[RW]
Public Class Methods
new(string)
click to toggle source
# File lib/modl/parser/parsed.rb, line 754 def initialize(string) @num = string.include?('.') ? string.to_f : string.to_i end