Method: WiseGopher::Param#initialize
- Defined in:
- lib/wise_gopher/param.rb
#initialize(name, type_symbol, transform = nil) ⇒ Param
Returns a new instance of Param.
8 9 10 11 12 |
# File 'lib/wise_gopher/param.rb', line 8 def initialize(name, type_symbol, transform = nil) @name = name.to_s.freeze @type = ActiveRecord::Type.lookup type_symbol @transform = transform&.to_proc end |