Module: GobbleShare
- Included in:
- GobbleAll, GobbleSingleFile
- Defined in:
- lib/commandline/gobble_share.rb
Instance Method Summary collapse
-
#convert_path_to_key_path(path) ⇒ Object
remove the file extension and the app/views/ so that when the context is set that rails will be able to find it through the default .
Instance Method Details
#convert_path_to_key_path(path) ⇒ Object
remove the file extension and the app/views/ so that when the context is set that rails will be able to find it through the default . key syntax
5 6 7 |
# File 'lib/commandline/gobble_share.rb', line 5 def convert_path_to_key_path( path ) path.split('.').first.gsub( '/app/views/', '') end |