Module: Kernel

Defined in:
lib/fixed.rb

Instance Method Summary collapse

Instance Method Details

#Fixed(arg) ⇒ Object



251
252
253
254
255
256
257
258
259
260
# File 'lib/fixed.rb', line 251

def Fixed(arg)
  case arg
  when String
    Fixed.parse arg
  when Numeric
    Fixed.from_number arg
  else
    raise ArgumentError
  end
end