Class: String
Instance Method Summary collapse
Instance Method Details
#camelize ⇒ Object
41 42 43 44 |
# File 'lib/notifu/mixins.rb', line 41 def camelize return self if self !~ /_/ && self =~ /[A-Z]+.*/ split('_').map{|e| e.capitalize}.join end |
#to_state ⇒ Object
46 47 48 |
# File 'lib/notifu/mixins.rb', line 46 def to_state return self.to_i.to_state end |