Module: Preval::Format
- Included in:
- Node
- Defined in:
- lib/preval/format.rb
Class Method Summary collapse
Class Method Details
.to(type, &block) ⇒ Object
5 6 7 |
# File 'lib/preval/format.rb', line 5 def self.to(type, &block) define_method(:"to_#{type}", &block) end |