Class: Rattler::Util::GraphViz::NodeBuilder::Mapping

Inherits:
Object
  • Object
show all
Defined in:
lib/rattler/util/graphviz/node_builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key, value) ⇒ Mapping

:nodoc:



98
99
100
101
# File 'lib/rattler/util/graphviz/node_builder.rb', line 98

def initialize(key, value)
  @key = key
  @value = value
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



102
103
104
# File 'lib/rattler/util/graphviz/node_builder.rb', line 102

def key
  @key
end

#valueObject (readonly)

Returns the value of attribute value.



102
103
104
# File 'lib/rattler/util/graphviz/node_builder.rb', line 102

def value
  @value
end

Instance Method Details

#each {|key| ... } ⇒ Object

Yields:



103
104
105
106
# File 'lib/rattler/util/graphviz/node_builder.rb', line 103

def each
  yield key
  yield value
end