Module: RubyApp::Mixins::StringExtension
- Included in:
- String
- Defined in:
- lib/ruby_app/mixins/string_extension.rb
Instance Method Summary collapse
Instance Method Details
#to_b ⇒ Object
7 8 9 |
# File 'lib/ruby_app/mixins/string_extension.rb', line 7 def to_b return self =~ /(true|t|yes|y|on)/ ? true : false end |