Class: FileFinder::Finder
- Inherits:
-
Object
- Object
- FileFinder::Finder
- Defined in:
- lib/file_finder/finder.rb
Instance Attribute Summary collapse
-
#calling_file ⇒ Object
readonly
Returns the value of attribute calling_file.
-
#configuration ⇒ Object
readonly
Returns the value of attribute configuration.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Class Method Summary collapse
Instance Method Summary collapse
- #absolute_path ⇒ Object
-
#initialize(path, calling_file) ⇒ Finder
constructor
A new instance of Finder.
Constructor Details
#initialize(path, calling_file) ⇒ Finder
Returns a new instance of Finder.
16 17 18 19 |
# File 'lib/file_finder/finder.rb', line 16 def initialize(path, calling_file) @path = path @calling_file = calling_file end |
Instance Attribute Details
#calling_file ⇒ Object (readonly)
Returns the value of attribute calling_file.
10 11 12 |
# File 'lib/file_finder/finder.rb', line 10 def calling_file @calling_file end |
#configuration ⇒ Object (readonly)
Returns the value of attribute configuration.
10 11 12 |
# File 'lib/file_finder/finder.rb', line 10 def configuration @configuration end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
10 11 12 |
# File 'lib/file_finder/finder.rb', line 10 def path @path end |
Class Method Details
.get_absolute_path_to(path, calling_file = __FILE__) ⇒ Object
12 13 14 |
# File 'lib/file_finder/finder.rb', line 12 def self.get_absolute_path_to(path, calling_file = __FILE__) new(path, calling_file).absolute_path end |