Class: Inch::CodeObject::Provider::YARD::Object::Base::CodeLocation
- Inherits:
-
Struct
- Object
- Struct
- Inch::CodeObject::Provider::YARD::Object::Base::CodeLocation
- Defined in:
- lib/inch/code_object/provider/yard/object/base.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
96 97 98 |
# File 'lib/inch/code_object/provider/yard/object/base.rb', line 96 def base_dir @base_dir end |
#line_no ⇒ Object
Returns the value of attribute line_no
96 97 98 |
# File 'lib/inch/code_object/provider/yard/object/base.rb', line 96 def line_no @line_no end |
#relative_path ⇒ Object
Returns the value of attribute relative_path
96 97 98 |
# File 'lib/inch/code_object/provider/yard/object/base.rb', line 96 def relative_path @relative_path end |
Instance Method Details
#filename ⇒ Object
97 98 99 |
# File 'lib/inch/code_object/provider/yard/object/base.rb', line 97 def filename File.join(base_dir, relative_path) end |