Parent

Class/Module Index [+]

Quicksearch

ClsRuby::UnsignedIntScalarParser

Класс парсера беззнаковых целых чисел.

Public Instance Methods

format( what ) click to toggle source
# File lib/cls-ruby/basic_scalars.rb, line 156
def format( what )
  what.to_s
end
on_tok_nonspace( token ) click to toggle source
# File lib/cls-ruby/basic_scalars.rb, line 147
def on_tok_nonspace( token )
  case token
    when /^[[:digit:]]+$/
      token.to_i( 10 )
    else
      try_parse_bin_oct_hex( token )
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.