Method: File.label
- Defined in:
- lib/flonkerton.rb
permalink .label(file) ⇒ Object
[View source]
5 6 7 |
# File 'lib/flonkerton.rb', line 5 def self.label(file) self.basename(file)[/^\w+/].scan(/[A-Z]*[a-z0-9]+/).join('_').downcase.intern end |