class Parxer::Formatter::Custom
Public Instance Methods
format_value(_v)
click to toggle source
# File lib/parxer/formatters/custom_formatter.rb, line 4 def format_value(_v) if !config[:formatter_proc].is_a?(Proc) raise Parxer::FormatterError.new("'formatter_proc' needs to be a Proc") end instance_eval(&config[:formatter_proc]) end