Class: Crystal::Params
- Defined in:
- lib/crystal/conveyor/params.rb
Instance Method Summary collapse
- #format=(value) ⇒ Object
-
#initialize(h = nil) ⇒ Params
constructor
include OpenConstructor.
- #inspect ⇒ Object
Constructor Details
#initialize(h = nil) ⇒ Params
include OpenConstructor
5 6 7 8 9 10 11 |
# File 'lib/crystal/conveyor/params.rb', line 5 def initialize h = nil if h and (format = h.delete('format') || h.delete(:format)) h = h.clone h[:format] = Format.new(format.to_s) end update h if h end |