Method: Castic#expected_name
- Defined in:
- lib/castic.rb
#expected_name ⇒ Object
16 17 18 19 20 21 22 23 24 |
# File 'lib/castic.rb', line 16 def expected_name @file.to_s .split('/') .last .split('-') .map(&:capitalize) .join .sub /\.rb$/, '' end |