Sha256: cd60eb3e9ffb358d6420a7077da80aacb0fe7c90b0f0b3471f5dd8fe6b2b9062

Contents?: true

Size: 262 Bytes

Versions: 4

Compression:

Stored size: 262 Bytes

Contents

module LintTrap
  module Parser
    # Interface for parsers
    class Base
      def parse(_io, _container)
        raise NotImplementedError, 'Must implement parse.'
      end

      def name
        self.class.name.split('::').last
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lint_trap-0.0.19 lib/lint_trap/parser/base.rb
lint_trap-0.0.18 lib/lint_trap/parser/base.rb
lint_trap-0.0.17 lib/lint_trap/parser/base.rb
lint_trap-0.0.16 lib/lint_trap/parser/base.rb