Class: BabelDiff::ImportFileHandler::ImportFile
- Inherits:
-
Struct
- Object
- Struct
- BabelDiff::ImportFileHandler::ImportFile
- Defined in:
- lib/babel_diff/import_file_handler.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
Instance Attribute Details
#path ⇒ Object
Returns the value of attribute path
38 39 40 |
# File 'lib/babel_diff/import_file_handler.rb', line 38 def path @path end |
Instance Method Details
#contents ⇒ Object
44 45 46 |
# File 'lib/babel_diff/import_file_handler.rb', line 44 def contents File.read(path) end |
#language ⇒ Object
40 41 42 |
# File 'lib/babel_diff/import_file_handler.rb', line 40 def language path.split("/")[-2] end |