include OpenConstructor.
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
13 14 15
# File 'lib/crystal/conveyor/params.rb', line 13 def format= value self[:format] = Format.new value end
17 18 19 20
# File 'lib/crystal/conveyor/params.rb', line 17 def inspect h = to_h h.inspect end