Object
# File lib/factory_girl/attribute.rb, line 36 def initialize(method_name) @method_name = method_name.to_s @method_name_setter_match = @method_name.match(/(.*)=$/) end
# File lib/factory_girl/attribute.rb, line 41 def validate! if method_is_writer? raise AttributeDefinitionError, error_message end end
[Validate]
Generated with the Darkfish Rdoc Generator 2.