Class: Symbol

Inherits:
Object
  • Object
show all
Defined in:
lib/juicer/ext/symbol.rb

Instance Method Summary collapse

Instance Method Details

#camel_caseObject

Converts symbol to string and calls String#camel_case



5
6
7
# File 'lib/juicer/ext/symbol.rb', line 5

def camel_case
  self.to_s.camel_case
end

#classify(mod = nil) ⇒ Object

Converts symbol to string and calls String#classify



12
13
14
# File 'lib/juicer/ext/symbol.rb', line 12

def classify(mod = nil)
  self.to_s.classify(mod)
end