Class: CardPrinter::Parser::JsonLine

Inherits:
Base
  • Object
show all
Defined in:
lib/card_printer/parser/json_line.rb

Instance Attribute Summary

Attributes inherited from Base

#iostream

Instance Method Summary collapse

Methods inherited from Base

#initialize, #parse

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