Exception: DataImp::NoParser
- Inherits:
-
StandardError
- Object
- StandardError
- DataImp::NoParser
- Defined in:
- lib/data_imp/no_parser.rb
Instance Attribute Summary collapse
-
#parser_type ⇒ Object
Returns the value of attribute parser_type.
Instance Method Summary collapse
-
#initialize(parser_type) ⇒ NoParser
constructor
A new instance of NoParser.
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_type ⇒ Object
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 |