Class: Sevgi::Graphics::Mixtures::Identify::Identifiers
- Inherits:
-
Object
- Object
- Sevgi::Graphics::Mixtures::Identify::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.
10 11 12 13 14 15 16 |
# File 'lib/sevgi/graphics/mixtures/identify.rb', line 10 def initialize(element) @element = element @namespace = {} @collision = {} build end |
Instance Attribute Details
#collision ⇒ Object (readonly)
Returns the value of attribute collision.
8 9 10 |
# File 'lib/sevgi/graphics/mixtures/identify.rb', line 8 def collision @collision end |
#element ⇒ Object (readonly)
Returns the value of attribute element.
8 9 10 |
# File 'lib/sevgi/graphics/mixtures/identify.rb', line 8 def element @element end |
#namespace ⇒ Object (readonly)
Returns the value of attribute namespace.
8 9 10 |
# File 'lib/sevgi/graphics/mixtures/identify.rb', line 8 def namespace @namespace end |
Instance Method Details
#[] ⇒ Object
22 23 24 |
# File 'lib/sevgi/graphics/mixtures/identify.rb', line 22 def [](*) @namespace[*] end |
#conflict? ⇒ Boolean
18 19 20 |
# File 'lib/sevgi/graphics/mixtures/identify.rb', line 18 def conflict? !@collision.empty? end |