class Number

Public Instance Methods

to_int() click to toggle source
# File lib/primitive_wrapper.rb, line 517
def to_int
  Int.new @value.to_i
end
valid_type(prm) click to toggle source
# File lib/primitive_wrapper.rb, line 509
def valid_type(prm)
  return true if prm.kind_of? Numeric
  return true if prm.kind_of? Number
  false
end
~() click to toggle source
# File lib/primitive_wrapper.rb, line 514
def ~   # make sure capture did not muck things up
  @value   # If you need ~ use Int instead of Number
end