class Datum
string, number
Public Instance Methods
to_int()
click to toggle source
# File lib/primitive_wrapper.rb, line 540 def to_int Int.new @value.to_i end
to_s()
click to toggle source
methods that broke … fixed here
# File lib/primitive_wrapper.rb, line 534 def to_s @value.to_s end
valid_type(prm)
click to toggle source
# File lib/primitive_wrapper.rb, line 526 def valid_type(prm) return true if prm.kind_of? Numeric return true if prm.kind_of? String return true if prm.kind_of? Datum false end
~()
click to toggle source
# File lib/primitive_wrapper.rb, line 537 def ~ # make sure capture did not muck things up @value # If you need ~ use Int instead of Number end