lib/brief/document/content_extractor.rb in brief-1.2.0 vs lib/brief/document/content_extractor.rb in brief-1.3.0
- old
+ new
@@ -3,13 +3,11 @@
def initialize(model_type, document)
@model_type = model_type
@document = document
end
- def document
- @document
- end
+ attr_reader :document
def model_class
Brief::Model.for_type(@model_type)
end
@@ -19,10 +17,10 @@
def respond_to?(meth)
attribute_set.key?(meth) || super
end
- def method_missing(meth, *args, &block)
+ def method_missing(meth, *_args, &_block)
if settings = attribute_set.fetch(meth, nil)
if settings.args.length == 1 && settings.args.first.is_a?(String)
selector = settings.args.first
matches = document.css(selector)