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:
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
#key ⇒ Object (readonly)
Returns the value of attribute key.
99 100 101 |
# File 'lib/rattler/util/graphviz/node_builder.rb', line 99 def key @key end |
#value ⇒ Object (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
100 101 102 103 |
# File 'lib/rattler/util/graphviz/node_builder.rb', line 100 def each yield key yield value end |