Module: RichTableComponent::CoreExtensions::String
- Included in:
- String
- Defined in:
- lib/rich_table_component/core_extensions/string.rb
Instance Method Summary collapse
Instance Method Details
#to_bool ⇒ Object
4 5 6 7 8 |
# File 'lib/rich_table_component/core_extensions/string.rb', line 4 def to_bool return true if [:true, 'true', '1', 'yes', 'on', 't'].include? self return false if [:false, 'false', '0', 'no', 'off', 'f'].include? self return nil end |