2011-09-23 17:14:02 +00:00
|
|
|
module FactoryGirl
|
|
|
|
class Declaration
|
|
|
|
class Static < Declaration
|
2011-10-07 22:19:27 +00:00
|
|
|
def initialize(name, value, ignored = false)
|
|
|
|
super(name, ignored)
|
2011-09-23 17:14:02 +00:00
|
|
|
@value = value
|
|
|
|
end
|
|
|
|
|
2011-10-14 19:14:43 +00:00
|
|
|
def ==(other)
|
|
|
|
name == other.name &&
|
|
|
|
value == other.value &&
|
|
|
|
ignored == other.ignored
|
|
|
|
end
|
|
|
|
|
|
|
|
protected
|
|
|
|
attr_reader :value
|
|
|
|
|
2011-09-23 17:14:02 +00:00
|
|
|
private
|
|
|
|
|
|
|
|
def build
|
2011-10-07 22:19:27 +00:00
|
|
|
[Attribute::Static.new(name, @value, @ignored)]
|
2011-09-23 17:14:02 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|