class Integer
Public Instance Methods
to_bool()
click to toggle source
This method converts to Boolean. @author phylroy.lopez@nrcan.gc.ca
# File lib/openstudio-standards/btap/btap.rb, line 61 def to_bool return true if self == 1 return false if self == 0 raise ArgumentError.new("invalid value for Boolean: \"#{self}\"") end