Class: Mj::AlternativeFile::Resolvers::Ruby::RubyFile
- Inherits:
-
CurrentFile
- Object
- CurrentFile
- Mj::AlternativeFile::Resolvers::Ruby::RubyFile
- Defined in:
- lib/mj/alternative_file/resolvers/ruby/ruby_file.rb
Instance Attribute Summary
Attributes inherited from CurrentFile
Instance Method Summary collapse
Methods inherited from CurrentFile
#end_with?, #exist?, #extension, #gsub, #initialize, #join, #match?, #name, #path_without_extension, #prefix_with, #split, #start_with?, #sub, #to_s, #trim_slashes, #without_prefix, #without_suffix
Constructor Details
This class inherits a constructor from Mj::AlternativeFile::CurrentFile
Instance Method Details
#class_path ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/mj/alternative_file/resolvers/ruby/ruby_file.rb', line 8 def class_path path_without_extension .without_prefix("spec") .without_prefix("test") .without_prefix("app") .without_prefix("lib") .without_suffix("_spec") .without_suffix("_test") .trim_slashes end |