class NaturalBornSlugger::ConfigurationError
Public Class Methods
new(class_name, attribute, context = nil)
click to toggle source
# File lib/natural_born_slugger/exceptions.rb, line 18 def initialize(class_name, attribute, context = nil) @class_name = class_name @attribute = attribute @context = context @message = "Composite attribute `#{attribute}` of #{class_name} has not been configured properly" end
Public Instance Methods
to_s()
click to toggle source
# File lib/natural_born_slugger/exceptions.rb, line 24 def to_s [@message, @context].compact.join(': ')+'.' end