Class: TodoAgent::FileIdentifier
- Inherits:
-
Object
- Object
- TodoAgent::FileIdentifier
- Defined in:
- lib/todo_agent/file_identifier.rb
Class Method Summary collapse
Class Method Details
.based_on_file_extension(filename) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/todo_agent/file_identifier.rb', line 5 def self.based_on_file_extension(filename) supported_files = { ".rb" => "Ruby" } extname = File.extname(filename) supported_files[extname] end |