Class: Etna::Cwl::PrimitiveLoader::BooleanLoader
- Inherits:
-
Loader
- Object
- Loader
- Etna::Cwl::PrimitiveLoader::BooleanLoader
show all
- Defined in:
- lib/etna/cwl.rb
Instance Method Summary
collapse
Methods inherited from Loader
#as_array, #as_mapped_array, #map, #optional, #or
Instance Method Details
#load(val) ⇒ Object
108
109
110
111
|
# File 'lib/etna/cwl.rb', line 108
def load(val)
raise "Invalid value #{val.inspect} for boolean" unless val.instance_of?(TrueClass) || val.instance_of?(FalseClass)
val
end
|
#name ⇒ Object
104
105
106
|
# File 'lib/etna/cwl.rb', line 104
def name
'boolean'
end
|