Class: Sevgi::Graphics::Mixtures::Identify::InstanceMethods::Identifiers
- Inherits:
-
Object
- Object
- Sevgi::Graphics::Mixtures::Identify::InstanceMethods::Identifiers
- Defined in:
- lib/sevgi/graphics/mixtures/identify.rb
Instance Attribute Summary collapse
-
#collision ⇒ Object
readonly
Returns the value of attribute collision.
-
#element ⇒ Object
readonly
Returns the value of attribute element.
-
#namespace ⇒ Object
readonly
Returns the value of attribute namespace.
Instance Method Summary collapse
- #[] ⇒ Object
- #conflict? ⇒ Boolean
-
#initialize(element) ⇒ Identifiers
constructor
A new instance of Identifiers.
Constructor Details
#initialize(element) ⇒ Identifiers
Returns a new instance of Identifiers.
11 12 13 14 15 16 17 |
# File 'lib/sevgi/graphics/mixtures/identify.rb', line 11 def initialize(element) @element = element @namespace = {} @collision = {} build end |
Instance Attribute Details
#collision ⇒ Object (readonly)
Returns the value of attribute collision.
9 10 11 |
# File 'lib/sevgi/graphics/mixtures/identify.rb', line 9 def collision @collision end |
#element ⇒ Object (readonly)
Returns the value of attribute element.
9 10 11 |
# File 'lib/sevgi/graphics/mixtures/identify.rb', line 9 def element @element end |
#namespace ⇒ Object (readonly)
Returns the value of attribute namespace.
9 10 11 |
# File 'lib/sevgi/graphics/mixtures/identify.rb', line 9 def namespace @namespace end |
Instance Method Details
#[] ⇒ Object
23 24 25 |
# File 'lib/sevgi/graphics/mixtures/identify.rb', line 23 def [](*) @namespace[*] end |
#conflict? ⇒ Boolean
19 20 21 |
# File 'lib/sevgi/graphics/mixtures/identify.rb', line 19 def conflict? !@collision.empty? end |