Class: INatGet::Data::Helper::Field::Scalar Private
- Inherits:
-
INatGet::Data::Helper::Field
- Object
- INatGet::Data::Helper::Field
- INatGet::Data::Helper::Field::Scalar
- Defined in:
- lib/inat-get/data/helpers/defs/scalar.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Direct Known Subclasses
Has, Identified, Licensed, ScalarCoord, ScalarModel, Verifiable
Instance Attribute Summary
Attributes inherited from INatGet::Data::Helper::Field
Instance Method Summary collapse
-
#initialize(helper, key, check) ⇒ Scalar
constructor
private
A new instance of Scalar.
- #valid?(value) ⇒ Boolean private
Methods inherited from INatGet::Data::Helper::Field
Constructor Details
#initialize(helper, key, check) ⇒ Scalar
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Scalar.
7 8 9 10 |
# File 'lib/inat-get/data/helpers/defs/scalar.rb', line 7 def initialize helper, key, check super helper, key @check = check end |
Instance Method Details
#valid?(value) ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
12 13 14 |
# File 'lib/inat-get/data/helpers/defs/scalar.rb', line 12 def valid? value value.nil? || @check === value end |