Class: File

Inherits:
Object
  • Object
show all
Defined in:
lib/flonkerton.rb

Class Method Summary collapse

Class Method Details

.label(file) ⇒ Object



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