Class: Fixnum
- Inherits:
-
Object
- Object
- Fixnum
- Defined in:
- lib/openstudio-standards/btap/btap.rb
Instance Method Summary collapse
-
#to_bool ⇒ Object
This method converts to Boolean.
Instance Method Details
#to_bool ⇒ Object
This method converts to Boolean.
60 61 62 63 64 |
# File 'lib/openstudio-standards/btap/btap.rb', line 60 def to_bool return true if self == 1 return false if self == 0 raise ArgumentError.new("invalid value for Boolean: \"#{self}\"") end |