Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/to_be/extensions/string.rb
Instance Method Summary collapse
-
#falsey? ⇒ Boolean
Indicates that the instance, when trimmed, is classified as “truthy” and is deemed as “falsey”.
-
#truey? ⇒ Boolean
Indicates that the instance, when trimmed, is classified as “truthy” and is deemed as “falsey”.
-
#truthy? ⇒ Boolean
Indicates that the instances, when trimmed, is classified as “truthy” (and is deemed as either “falsey” or “truey”).
Instance Method Details
#falsey? ⇒ Boolean
Indicates that the instance, when trimmed, is classified as “truthy” and is deemed as “falsey”.
See ToBe::string_falsey?
11 12 13 14 |
# File 'lib/to_be/extensions/string.rb', line 11 def falsey? return ToBe::string_falsey? self end |
#truey? ⇒ Boolean
Indicates that the instance, when trimmed, is classified as “truthy” and is deemed as “falsey”.
See ToBe::string_truey?
20 21 22 23 |
# File 'lib/to_be/extensions/string.rb', line 20 def truey? return ToBe::string_truey? self end |
#truthy? ⇒ Boolean
Indicates that the instances, when trimmed, is classified as “truthy” (and is deemed as either “falsey” or “truey”).
See ToBe::string_truthy?
29 30 31 32 |
# File 'lib/to_be/extensions/string.rb', line 29 def truthy? return ToBe::string_truthy? self end |