Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/to_be/extensions/string.rb

Instance Method Summary collapse

Instance Method Details

#falsey?Boolean

Indicates that the instance, when trimmed, is classified as “truthy” and is deemed as “falsey”.

See ToBe::string_falsey?

Returns:

  • (Boolean)


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?

Returns:

  • (Boolean)


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?

Returns:

  • (Boolean)


29
30
31
32
# File 'lib/to_be/extensions/string.rb', line 29

def truthy?

  return ToBe::string_truthy? self
end