lib/yard/parser/base.rb in yard-0.9.5 vs lib/yard/parser/base.rb in yard-0.9.6

- old
+ new

@@ -1,5 +1,6 @@ +# frozen_string_literal: true module YARD module Parser # Represents the abstract base parser class that parses source code in # a specific way. A parser should implement {#parse}, {#tokenize} and # {#enumerator}. @@ -20,11 +21,11 @@ # This default constructor does nothing. The subclass is responsible for # storing the source contents and filename if they are required. # @param [String] source the source contents # @param [String] filename the name of the file if from disk - def initialize(source, filename) + def initialize(source, filename) # rubocop:disable Lint/UnusedMethodArgument raise NotImplementedError, "invalid parser implementation" end # This method should be implemented to parse the source and return itself. # @abstract @@ -51,6 +52,6 @@ def enumerator nil end end end -end \ No newline at end of file +end