Class: ROXML::HashDefinition
- Inherits:
-
Object
- Object
- ROXML::HashDefinition
- Defined in:
- lib/roxml/hash_definition.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
-
#wrapper ⇒ Object
Returns the value of attribute wrapper.
Instance Method Summary collapse
-
#initialize(opts) ⇒ HashDefinition
constructor
A new instance of HashDefinition.
Constructor Details
#initialize(opts) ⇒ HashDefinition
Returns a new instance of HashDefinition.
6 7 8 9 10 11 |
# File 'lib/roxml/hash_definition.rb', line 6 def initialize(opts) opts.assert_valid_keys(:key, :value) @key = Definition.new(nil, (opts, :key)) @value = Definition.new(nil, (opts, :value)) end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
3 4 5 |
# File 'lib/roxml/hash_definition.rb', line 3 def key @key end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
3 4 5 |
# File 'lib/roxml/hash_definition.rb', line 3 def value @value end |
#wrapper ⇒ Object
Returns the value of attribute wrapper.
4 5 6 |
# File 'lib/roxml/hash_definition.rb', line 4 def wrapper @wrapper end |