Method: HumanValue.humanize
- Defined in:
- lib/human_value.rb
.humanize(type, options = {}, &block) ⇒ Object
15 16 17 18 |
# File 'lib/human_value.rb', line 15 def self.humanize(type, = {}, &block) modifier = [:prepend] ? :unshift : :push humanizations.public_send modifier, Humanization.new(type).instance_eval(&block) end |