Class: CardPrinter::Parser::JsonLine
- Defined in:
- lib/card_printer/parser/json_line.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from CardPrinter::Parser::Base
Instance Method Details
#parse_line(line) ⇒ Object
5 6 7 8 9 |
# File 'lib/card_printer/parser/json_line.rb', line 5 def parse_line(line) JSON.parse(line) rescue nil end |