class ParamsReady::AbstractReporter
Attributes
name[R]
Public Class Methods
new(name)
click to toggle source
# File lib/params_ready/result.rb, line 7 def initialize(name) @name = name.to_s.freeze end
Public Instance Methods
error!(err)
click to toggle source
# File lib/params_ready/result.rb, line 11 def error!(err) report_error(nil, err) end
for_child(name)
click to toggle source
# File lib/params_ready/result.rb, line 20 def for_child(name) Reporter.new name, self end
full_path(path)
click to toggle source
# File lib/params_ready/result.rb, line 15 def full_path(path) return [name] if path.nil? || path.empty? [name, *path] end