Class: RailsParam::Coercion::FloatParam

Inherits:
VirtualParam show all
Defined in:
lib/rails_param/coercion/float_param.rb

Instance Attribute Summary

Attributes inherited from VirtualParam

#options, #param, #type

Instance Method Summary collapse

Methods inherited from VirtualParam

#initialize

Constructor Details

This class inherits a constructor from RailsParam::Coercion::VirtualParam

Instance Method Details

#coerceObject



4
5
6
# File 'lib/rails_param/coercion/float_param.rb', line 4

def coerce
  Float(param)
end