Module: DeviceAtlas::StringType
- Included in:
- String
- Defined in:
- lib/deviceatlas.rb
Constant Summary collapse
- TRUE_VALUES =
Possible true values represented as String.
%w[t true on y yes 1].freeze
- FALSE_VALUES =
Possible false values represented as String.
%w[f false off n no 0].freeze
Instance Method Summary collapse
-
#compare_values(others, operator) ⇒ Boolean
Compare string values.
-
#to_bool ⇒ Boolean
Convert a String value to boolean.
Instance Method Details
#compare_values(others, operator) ⇒ Boolean
Compare string values.
#to_bool ⇒ Boolean
Convert a String value to boolean.