Sha256: af8c0bc39b99acb79f5e716465d7d3b8400dcd31704f2f7916a1bed96cb4b90b

Contents?: true

Size: 718 Bytes

Versions: 3

Compression:

Stored size: 718 Bytes

Contents

require "detail_parser/version"
require "detail_parser/logger"
require 'detail_parser/configurable'

begin
  require "pry"
rescue LoadError
end

module DetailParser

  puts "in detail_parser module"
  # Your code goes here...
  module_function
  def setup(app)
    puts "detail_parser setup"
    self.application = app

    # attach_to_action_controller
    # set_lograge_log_options
    # support_deprecated_config
    # set_formatter
    # set_ignores
    # Logger.setup
  end


  mattr_writer :before_format
  self.before_format = nil

  def before_format(data, payload)
    result = nil
    result = @@before_format.call(data, payload) if @@before_format
    result || data
  end

  mattr_accessor :formatter

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
detail_parser-0.1.4 lib/detail_parser.rb
detail_parser-0.1.3 lib/detail_parser.rb
detail_parser-0.1.2 lib/detail_parser.rb