Class: Symbol
Instance Method Summary collapse
-
#blank? ⇒ Boolean
Provide helper for nil/“” blankness checker.
- #ends_with?(str) ⇒ Boolean
- #starts_with?(str) ⇒ Boolean
- #to_dashcase ⇒ Object
Instance Method Details
#blank? ⇒ Boolean
Provide helper for nil/“” blankness checker
4 5 6 |
# File 'lib/iron/extensions/symbol.rb', line 4 def blank? false end |
#ends_with?(str) ⇒ Boolean
17 18 19 |
# File 'lib/iron/extensions/symbol.rb', line 17 def ends_with?(str) self.to_s.ends_with?(str) end |
#starts_with?(str) ⇒ Boolean
13 14 15 |
# File 'lib/iron/extensions/symbol.rb', line 13 def starts_with?(str) self.to_s.starts_with?(str) end |
#to_dashcase ⇒ Object
8 9 10 |
# File 'lib/iron/extensions/symbol.rb', line 8 def to_dashcase self.to_s.to_dashcase end |