Class: Humidifier::Props::JsonProp

Inherits:
Prop
  • Object
show all
Defined in:
lib/humidifier/props.rb

Constant Summary

Constants inherited from Prop

Prop::WHITELIST

Instance Attribute Summary

Attributes inherited from Prop

#key, #name, #spec

Instance Method Summary collapse

Methods inherited from Prop

allow_type, allowed_types, #documentation, #initialize, #required?, #to_cf, #update_type, #valid?

Constructor Details

This class inherits a constructor from Humidifier::Props::Prop

Instance Method Details

#pretty_print(q) ⇒ Object



83
84
85
# File 'lib/humidifier/props.rb', line 83

def pretty_print(q)
  q.text("(#{name}=json)")
end