Class: ActiveCMIS::AtomicType::Boolean
- Inherits:
-
Singleton
- Object
- CommonBase
- Singleton
- ActiveCMIS::AtomicType::Boolean
- Defined in:
- lib/active_cmis/atomic_types.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Singleton
Methods inherited from CommonBase
Class Method Details
.xml_to_bool(value) ⇒ Object
149 150 151 152 153 154 155 |
# File 'lib/active_cmis/atomic_types.rb', line 149 def self.xml_to_bool(value) case value when "true", "1"; true when "false", "0"; false else raise ActiveCMIS::Error.new("An invalid boolean was found in CMIS") end end |