Method: ATypes::BooleanWrap#to_s

Defined in:
lib/a_types/decorators/boolean_wrap.rb

#to_sString Also known as: inspect

Returns string representation of this BooleanWrap’s #to_bool interpretation.

Examples:

BooleanWrap.new('y').to_s   # => "true"

Returns:

  • string representation of this BooleanWrap’s #to_bool interpretation.



141
142
143
# File 'lib/a_types/decorators/boolean_wrap.rb', line 141

def to_s
  to_bool.to_s
end