Module: Roby::TaskStructure::Conflicts::ModelExtension
- Extended by:
- MetaRuby::Attributes
- Defined in:
- lib/roby/task_structure/conflicts.rb
Instance Method Summary collapse
Instance Method Details
#conflicts_with(model) ⇒ Object
17 18 19 20 |
# File 'lib/roby/task_structure/conflicts.rb', line 17 def conflicts_with(model) conflicting_models << model model.conflicting_models << self end |
#conflicts_with?(model) ⇒ Boolean
22 23 24 25 26 27 |
# File 'lib/roby/task_structure/conflicts.rb', line 22 def conflicts_with?(model) each_conflicting_model do |m| return true if model <= m end false end |