Class: Spider::Model::SortTask
Instance Attribute Summary collapse
-
#dependencies ⇒ Object
readonly
Returns the value of attribute dependencies.
-
#model ⇒ Object
readonly
Returns the value of attribute model.
Instance Method Summary collapse
- #<<(model) ⇒ Object
- #eql?(other) ⇒ Boolean
-
#initialize(model) ⇒ SortTask
constructor
A new instance of SortTask.
- #inspect ⇒ Object
Constructor Details
#initialize(model) ⇒ SortTask
Returns a new instance of SortTask.
351 352 353 354 |
# File 'lib/spiderfw/model/model.rb', line 351 def initialize(model) @model = model @dependencies = [] end |
Instance Attribute Details
#dependencies ⇒ Object (readonly)
Returns the value of attribute dependencies.
349 350 351 |
# File 'lib/spiderfw/model/model.rb', line 349 def dependencies @dependencies end |
#model ⇒ Object (readonly)
Returns the value of attribute model.
349 350 351 |
# File 'lib/spiderfw/model/model.rb', line 349 def model @model end |
Instance Method Details
#<<(model) ⇒ Object
356 357 358 |
# File 'lib/spiderfw/model/model.rb', line 356 def <<(model) @dependencies << model end |
#eql?(other) ⇒ Boolean
360 361 362 |
# File 'lib/spiderfw/model/model.rb', line 360 def eql?(other) @model == other.model end |
#inspect ⇒ Object
364 365 366 |
# File 'lib/spiderfw/model/model.rb', line 364 def inspect "#{@model.name} -> (#{dependencies.map{|d| d.model.name }.join(', ')})" end |