class StructuredReader::JSONReader::CustomReader
Public Class Methods
new(**_, &blk)
click to toggle source
# File lib/structured_reader.rb, line 248 def initialize(**_, &blk) @read_action = blk end
Public Instance Methods
read(fragment, context)
click to toggle source
# File lib/structured_reader.rb, line 252 def read(fragment, context) @read_action.call(fragment, context) end