Class: Cthulhu::Destroyer
- Inherits:
-
Object
- Object
- Cthulhu::Destroyer
- Defined in:
- lib/cthulhu/destroyer.rb
Instance Attribute Summary collapse
-
#blacklisted ⇒ Object
readonly
Returns the value of attribute blacklisted.
-
#option_overrides ⇒ Object
readonly
Returns the value of attribute option_overrides.
-
#root ⇒ Object
readonly
Returns the value of attribute root.
-
#root_klass ⇒ Object
readonly
Returns the value of attribute root_klass.
-
#skip ⇒ Object
Returns the value of attribute skip.
Instance Method Summary collapse
- #destroy! ⇒ Object
-
#initialize(root, blacklisted = [], not_to_be_crawled = [], option_overrides = {}) ⇒ Destroyer
constructor
A new instance of Destroyer.
Constructor Details
#initialize(root, blacklisted = [], not_to_be_crawled = [], option_overrides = {}) ⇒ Destroyer
Returns a new instance of Destroyer.
7 8 9 10 11 12 13 |
# File 'lib/cthulhu/destroyer.rb', line 7 def initialize root, blacklisted = [], not_to_be_crawled = [], option_overrides = {} @root = root @root_klass = root.class @skip = not_to_be_crawled.to_set @option_overrides = option_overrides @blacklisted = blacklisted end |
Instance Attribute Details
#blacklisted ⇒ Object (readonly)
Returns the value of attribute blacklisted.
4 5 6 |
# File 'lib/cthulhu/destroyer.rb', line 4 def blacklisted @blacklisted end |
#option_overrides ⇒ Object (readonly)
Returns the value of attribute option_overrides.
4 5 6 |
# File 'lib/cthulhu/destroyer.rb', line 4 def option_overrides @option_overrides end |
#root ⇒ Object (readonly)
Returns the value of attribute root.
4 5 6 |
# File 'lib/cthulhu/destroyer.rb', line 4 def root @root end |
#root_klass ⇒ Object (readonly)
Returns the value of attribute root_klass.
4 5 6 |
# File 'lib/cthulhu/destroyer.rb', line 4 def root_klass @root_klass end |
#skip ⇒ Object
Returns the value of attribute skip.
5 6 7 |
# File 'lib/cthulhu/destroyer.rb', line 5 def skip @skip end |