Class: Rattler::Util::GraphViz::NodeBuilder::Mapping
- Inherits:
-
Object
- Object
- Rattler::Util::GraphViz::NodeBuilder::Mapping
- Defined in:
- lib/rattler/util/graphviz/node_builder.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #each {|key| ... } ⇒ Object
-
#initialize(key, value) ⇒ Mapping
constructor
:nodoc:.
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
#key ⇒ Object (readonly)
Returns the value of attribute key.
115 116 117 |
# File 'lib/rattler/util/graphviz/node_builder.rb', line 115 def key @key end |
#value ⇒ Object (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
116 117 118 119 |
# File 'lib/rattler/util/graphviz/node_builder.rb', line 116 def each yield key yield value end |