Class: Hamachi::NullableField
- Defined in:
- lib/hamachi/source/field.rb
Instance Method Summary collapse
Methods inherited from Field
#default_value, #from_snapshot, #initialize, #initialize_options
Constructor Details
This class inherits a constructor from Hamachi::Field
Instance Method Details
#===(value) ⇒ Object
80 81 82 |
# File 'lib/hamachi/source/field.rb', line 80 def ===(value) @type === value || value.nil? end |
#to_s ⇒ Object
84 85 86 |
# File 'lib/hamachi/source/field.rb', line 84 def to_s "nullable(#{@type})" end |