Method: CodeSnippet::Snip.new_from_file
- Defined in:
- lib/code_snippet/snip.rb
.new_from_file(path) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/code_snippet/snip.rb', line 6 def self.new_from_file(path) new( path, File.basename(path), File.extname(path) ) end |