Class: Reference
- Inherits:
-
Object
- Object
- Reference
- Defined in:
- lib/entruby.rb
Instance Method Summary collapse
-
#initialize(element) ⇒ Reference
constructor
A new instance of Reference.
-
#reveal(collection) ⇒ Object
Doxyparser::Function.
Constructor Details
#initialize(element) ⇒ Reference
Returns a new instance of Reference.
6 7 8 9 |
# File 'lib/entruby.rb', line 6 def initialize(element) @id = element[:refid] @content = element.content end |
Instance Method Details
#reveal(collection) ⇒ Object
Returns Doxyparser::Function.
12 13 14 |
# File 'lib/entruby.rb', line 12 def reveal(collection) collection.find { |member| member.basename == @content } end |