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:



111
112
113
114
# File 'lib/rattler/util/graphviz/node_builder.rb', line 111

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

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



115
116
117
# File 'lib/rattler/util/graphviz/node_builder.rb', line 115

def key
  @key
end

#valueObject (readonly)

Returns the value of attribute value.



115
116
117
# File 'lib/rattler/util/graphviz/node_builder.rb', line 115

def value
  @value
end

Instance Method Details

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

Yields:



116
117
118
119
# File 'lib/rattler/util/graphviz/node_builder.rb', line 116

def each
  yield key
  yield value
end