diff --git a/lib/haml/filters.rb b/lib/haml/filters.rb index 6adf99b0..cccc95b6 100644 --- a/lib/haml/filters.rb +++ b/lib/haml/filters.rb @@ -120,7 +120,7 @@ module Haml # @param text [String] The source text for the filter to process # @return [String] The filtered result # @raise [Haml::Error] if it's not overridden - def render(text) + def render(_text) raise Error.new("#{self.inspect}#render not defined!") end @@ -131,7 +131,7 @@ module Haml # @param text [String] The source text for the filter to process # @return [String] The filtered result # @raise [Haml::Error] if it or \{#render} isn't overridden - def render_with_options(text, options) + def render_with_options(text, _options) render(text) end diff --git a/test/template_test_helper.rb b/test/template_test_helper.rb index 6ad6d470..7c8f22ae 100644 --- a/test/template_test_helper.rb +++ b/test/template_test_helper.rb @@ -11,7 +11,7 @@ module Haml::Helpers end class Egocentic - def method_missing(*args) + def method_missing(*) self end end