Class: Symbol

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

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

Provide helper for nil/“” blankness checker

Returns:

  • (Boolean)


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

def blank?
  false
end

#ends_with?(str) ⇒ Boolean

Returns:

  • (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

Returns:

  • (Boolean)


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

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

#to_dashcaseObject



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

def to_dashcase
  self.to_s.to_dashcase
end