Skip to content

Commit 22e96b9

Browse files
committed
whoops!
1 parent c412896 commit 22e96b9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/html_pipeline/filter.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ class HTMLPipeline
1616
# Each filter may define additional options and output values. See the class
1717
# docs for more info.
1818
class Filter
19-
attr_accessor :context
20-
2119
class InvalidDocumentException < StandardError; end
2220

2321
def initialize(context: {}, result: {})
@@ -29,7 +27,7 @@ def initialize(context: {}, result: {})
2927
# Public: Returns a simple Hash used to pass extra information into filters
3028
# and also to allow filters to make extracted information available to the
3129
# caller.
32-
attr_reader :context
30+
attr_accessor :context
3331

3432
# Public: Returns a Hash used to allow filters to pass back information
3533
# to callers of the various Pipelines. This can be used for

lib/html_pipeline/node_filter.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
class HTMLPipeline
66
class NodeFilter < Filter
7+
attr_accessor :context
8+
79
def initialize(context: {}, result: {})
810
super(context: context, result: {})
911
send(:after_initialize) if respond_to?(:after_initialize)

0 commit comments

Comments
 (0)