# File lib/virtus.rb, line 16definitialize(output, attribute)
@output, @attribute = output, attributesuper(build_message)
end
Public Instance Methods
attribute_name()click to toggle source
# File lib/virtus.rb, line 29defattribute_nameattribute.options[:name]
end
attribute_name?()click to toggle source
# File lib/virtus.rb, line 33defattribute_name?attribute_name?true:falseend
build_message()click to toggle source
# File lib/virtus.rb, line 21defbuild_messageifattribute_name?"Failed to coerce attribute `#{attribute_name}' from #{output.inspect} into #{target_type}"else"Failed to coerce #{output.inspect} into #{target_type}"endend
target_type()click to toggle source
# File lib/virtus.rb, line 37deftarget_typeattribute.primitive.inspectend