Class: ROXML::HashDefinition

Inherits:
Object
  • Object
show all
Defined in:
lib/roxml/hash_definition.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

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, to_definition_options(opts, :key))
  @value = Definition.new(nil, to_definition_options(opts, :value))
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



3
4
5
# File 'lib/roxml/hash_definition.rb', line 3

def key
  @key
end

#valueObject (readonly)

Returns the value of attribute value.



3
4
5
# File 'lib/roxml/hash_definition.rb', line 3

def value
  @value
end

#wrapperObject

Returns the value of attribute wrapper.



4
5
6
# File 'lib/roxml/hash_definition.rb', line 4

def wrapper
  @wrapper
end