Class: Sevgi::Graphics::Mixtures::Identify::InstanceMethods::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.



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

#collisionObject (readonly)

Returns the value of attribute collision.



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

def collision
  @collision
end

#elementObject (readonly)

Returns the value of attribute element.



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

def element
  @element
end

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

Returns:

  • (Boolean)


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

def conflict?
  !@collision.empty?
end