Class: Symbol

Inherits:
Object show all
Defined in:
lib/iron/extensions/symbol.rb

Instance Method Summary collapse

Instance Method Details

#ends_with?(str) ⇒ Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/iron/extensions/symbol.rb', line 12

def ends_with?(str)
  self.to_s.ends_with?(str)
end

#starts_with?(str) ⇒ Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/iron/extensions/symbol.rb', line 8

def starts_with?(str)
  self.to_s.starts_with?(str)
end

#to_dashcaseObject



3
4
5
# File 'lib/iron/extensions/symbol.rb', line 3

def to_dashcase
  self.to_s.to_dashcase
end