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