Class: DuckTesting::YARD::CodeObject

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/duck_testing/yard/code_object.rb

Direct Known Subclasses

ClassObject, MethodObject

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(yard_object) ⇒ CodeObject

Returns a new instance of CodeObject.

Parameters:

  • yard_object (YARD::CodeObjects::Base)


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

#pathString (readonly)

Represents the unique path of the object.

Returns:

  • (String)


14
# File 'lib/duck_testing/yard/code_object.rb', line 14

def_delegators :@yard_object, "path"

#yard_objectObject (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