Class: DuckTesting::YARD::CodeObject
- Inherits:
-
Object
- Object
- DuckTesting::YARD::CodeObject
- Extended by:
- Forwardable
- Defined in:
- lib/duck_testing/yard/code_object.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#path ⇒ String
readonly
Represents the unique path of the object.
-
#yard_object ⇒ Object
readonly
Returns the value of attribute yard_object.
Instance Method Summary collapse
-
#initialize(yard_object) ⇒ CodeObject
constructor
A new instance of CodeObject.
Constructor Details
#initialize(yard_object) ⇒ CodeObject
Returns a new instance of CodeObject.
17 18 19 |
# File 'lib/duck_testing/yard/code_object.rb', line 17 def initialize(yard_object) @yard_object = yard_object end |
Instance Attribute Details
#path ⇒ String (readonly)
Represents the unique path of the object.
14 |
# File 'lib/duck_testing/yard/code_object.rb', line 14 def_delegators :@yard_object, "path" |
#yard_object ⇒ Object (readonly)
Returns the value of attribute yard_object.
8 9 10 |
# File 'lib/duck_testing/yard/code_object.rb', line 8 def yard_object @yard_object end |