Exception: DataImp::NoParser

Inherits:
StandardError
  • Object
show all
Defined in:
lib/data_imp/no_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parser_type) ⇒ NoParser

Returns a new instance of NoParser.



3
4
5
6
7
8
9
# File 'lib/data_imp/no_parser.rb', line 3

def initialize(parser_type)
  @parser_type = parser_type
  super <<-MSG.strip_heredoc
    Unable to find Parser for #{parser_type.inspect}
    Please define: class #{parser_type.camelize}Parser < DataImp::Parser
  MSG
end

Instance Attribute Details

#parser_typeObject

Returns the value of attribute parser_type.



2
3
4
# File 'lib/data_imp/no_parser.rb', line 2

def parser_type
  @parser_type
end