Class: CEML::Criteria
- Inherits:
-
Struct
- Object
- Struct
- CEML::Criteria
- Defined in:
- lib/ceml/role.rb
Instance Attribute Summary collapse
-
#matching ⇒ Object
Returns the value of attribute matching.
-
#minus_tags ⇒ Object
Returns the value of attribute minus_tags.
-
#plus_tags ⇒ Object
Returns the value of attribute plus_tags.
-
#radius ⇒ Object
Returns the value of attribute radius.
-
#timewindow ⇒ Object
Returns the value of attribute timewindow.
Instance Method Summary collapse
Instance Attribute Details
#matching ⇒ Object
Returns the value of attribute matching
3 4 5 |
# File 'lib/ceml/role.rb', line 3 def matching @matching end |
#minus_tags ⇒ Object
Returns the value of attribute minus_tags
3 4 5 |
# File 'lib/ceml/role.rb', line 3 def @minus_tags end |
#plus_tags ⇒ Object
Returns the value of attribute plus_tags
3 4 5 |
# File 'lib/ceml/role.rb', line 3 def @plus_tags end |
#radius ⇒ Object
Returns the value of attribute radius
3 4 5 |
# File 'lib/ceml/role.rb', line 3 def radius @radius end |
#timewindow ⇒ Object
Returns the value of attribute timewindow
3 4 5 |
# File 'lib/ceml/role.rb', line 3 def timewindow @timewindow end |
Instance Method Details
#=~(candidate) ⇒ Object
5 6 7 8 |
# File 'lib/ceml/role.rb', line 5 def =~(candidate) candidate[:tags] ||= [] ( - candidate[:tags]).empty? and ( & candidate[:tags]).empty? end |
#complexity ⇒ Object
4 |
# File 'lib/ceml/role.rb', line 4 def complexity; .size; end |