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:



95
96
97
98
# File 'lib/rattler/util/graphviz/node_builder.rb', line 95

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

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



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

def key
  @key
end

#valueObject (readonly)

Returns the value of attribute value.



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

def value
  @value
end

Instance Method Details

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

Yields:



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

def each
  yield key
  yield value
end