Wrapper for error strings so that they may be exported using to_xxx
# File lib/active_scaffold/data_structures/error_message.rb, line 8 def public_attributes { :error => @error } end
# File lib/active_scaffold/data_structures/error_message.rb, line 20 def to_s @error end
# File lib/active_scaffold/data_structures/error_message.rb, line 12 def to_xml public_attributes.to_xml(:root => "errors") end
# File lib/active_scaffold/data_structures/error_message.rb, line 16 def to_yaml public_attributes.to_yaml end
# File lib/active_scaffold/data_structures/error_message.rb, line 4 def initialize(error) @error = error end