Class: Fiona7::RecursiveObjectFinder
- Inherits:
-
Object
- Object
- Fiona7::RecursiveObjectFinder
- Defined in:
- lib/fiona7/recursive_object_finder.rb
Instance Attribute Summary collapse
-
#downloads ⇒ Object
readonly
Returns the value of attribute downloads.
-
#images ⇒ Object
readonly
Returns the value of attribute images.
-
#linked ⇒ Object
readonly
Returns the value of attribute linked.
-
#referenced ⇒ Object
readonly
Returns the value of attribute referenced.
-
#starting_obj ⇒ Object
readonly
Returns the value of attribute starting_obj.
-
#widgets ⇒ Object
readonly
Returns the value of attribute widgets.
Instance Method Summary collapse
-
#initialize(starting_obj, max_levels = 3) ⇒ RecursiveObjectFinder
constructor
A new instance of RecursiveObjectFinder.
Constructor Details
#initialize(starting_obj, max_levels = 3) ⇒ RecursiveObjectFinder
Returns a new instance of RecursiveObjectFinder.
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fiona7/recursive_object_finder.rb', line 7 def initialize(starting_obj, max_levels=3) @starting_obj = starting_obj @max_levels = max_levels = [] @images = [] @downloads = [] @referenced = [] @linked = [] recursive_compute(@starting_obj, Set[@starting_obj], @max_levels) end |
Instance Attribute Details
#downloads ⇒ Object (readonly)
Returns the value of attribute downloads.
5 6 7 |
# File 'lib/fiona7/recursive_object_finder.rb', line 5 def downloads @downloads end |
#images ⇒ Object (readonly)
Returns the value of attribute images.
5 6 7 |
# File 'lib/fiona7/recursive_object_finder.rb', line 5 def images @images end |
#linked ⇒ Object (readonly)
Returns the value of attribute linked.
5 6 7 |
# File 'lib/fiona7/recursive_object_finder.rb', line 5 def linked @linked end |
#referenced ⇒ Object (readonly)
Returns the value of attribute referenced.
5 6 7 |
# File 'lib/fiona7/recursive_object_finder.rb', line 5 def referenced @referenced end |
#starting_obj ⇒ Object (readonly)
Returns the value of attribute starting_obj.
5 6 7 |
# File 'lib/fiona7/recursive_object_finder.rb', line 5 def starting_obj @starting_obj end |
#widgets ⇒ Object (readonly)
Returns the value of attribute widgets.
5 6 7 |
# File 'lib/fiona7/recursive_object_finder.rb', line 5 def end |