Class: Stitch::Source
- Inherits:
-
Object
- Object
- Stitch::Source
- Defined in:
- lib/gumdrop/stitch_support.rb
Overview
require ‘stitch’
Instance Method Summary collapse
-
#name ⇒ Object
Patch for gumdrop style filenames.
Instance Method Details
#name ⇒ Object
Patch for gumdrop style filenames
7 8 9 10 11 |
# File 'lib/gumdrop/stitch_support.rb', line 7 def name name = path.relative_path_from(root) name = name.dirname + name.basename(".*") name.to_s.gsub(".js", '') end |