Skip to content

Commit

Permalink
whoops!
Browse files Browse the repository at this point in the history
  • Loading branch information
gjtorikian committed Apr 30, 2024
1 parent c412896 commit 22e96b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 1 addition & 3 deletions lib/html_pipeline/filter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ class HTMLPipeline
# Each filter may define additional options and output values. See the class
# docs for more info.
class Filter
attr_accessor :context

class InvalidDocumentException < StandardError; end

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

# Public: Returns a Hash used to allow filters to pass back information
# to callers of the various Pipelines. This can be used for
Expand Down
2 changes: 2 additions & 0 deletions lib/html_pipeline/node_filter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

class HTMLPipeline
class NodeFilter < Filter
attr_accessor :context

def initialize(context: {}, result: {})
super(context: context, result: {})
send(:after_initialize) if respond_to?(:after_initialize)
Expand Down

0 comments on commit 22e96b9

Please sign in to comment.