Class: Inch::Utils::CodeLocation
- Inherits:
-
Struct
- Object
- Struct
- Inch::Utils::CodeLocation
- Defined in:
- lib/inch/utils/code_location.rb
Overview
CodeLocation is a utility class to find declarations of objects in files
Instance Attribute Summary collapse
-
#base_dir ⇒ Object
Returns the value of attribute base_dir.
-
#line_no ⇒ Object
Returns the value of attribute line_no.
-
#relative_path ⇒ Object
Returns the value of attribute relative_path.
Instance Method Summary collapse
Instance Attribute Details
#base_dir ⇒ Object
Returns the value of attribute base_dir
5 6 7 |
# File 'lib/inch/utils/code_location.rb', line 5 def base_dir @base_dir end |
#line_no ⇒ Object
Returns the value of attribute line_no
5 6 7 |
# File 'lib/inch/utils/code_location.rb', line 5 def line_no @line_no end |
#relative_path ⇒ Object
Returns the value of attribute relative_path
5 6 7 |
# File 'lib/inch/utils/code_location.rb', line 5 def relative_path @relative_path end |
Instance Method Details
#filename ⇒ Object
7 8 9 |
# File 'lib/inch/utils/code_location.rb', line 7 def filename File.join(base_dir, relative_path) end |