Class: Sevgi::Graphics::Mixtures::Identify::Identifiers

Inherits:
Object
  • Object
show all
Defined in:
lib/sevgi/graphics/mixtures/identify.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#collisionObject (readonly)

Returns the value of attribute collision.



8
9
10
# File 'lib/sevgi/graphics/mixtures/identify.rb', line 8

def collision
  @collision
end

#elementObject (readonly)

Returns the value of attribute element.



8
9
10
# File 'lib/sevgi/graphics/mixtures/identify.rb', line 8

def element
  @element
end

#namespaceObject (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

Returns:

  • (Boolean)


18
19
20
# File 'lib/sevgi/graphics/mixtures/identify.rb', line 18

def conflict?
  !@collision.empty?
end