Module: javaxjavax::managementjavax::management::openmbean::CompositeData
- Includes:
- Enumerable
- Defined in:
- lib/jmx.rb
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args) ⇒ Object
32
33
34
|
# File 'lib/jmx.rb', line 32
def method_missing(name, *args)
self[name]
end
|
Instance Method Details
#[](key) ⇒ Object
28
29
30
|
# File 'lib/jmx.rb', line 28
def [](key)
get(key.to_s)
end
|
#each ⇒ Object
36
37
38
|
# File 'lib/jmx.rb', line 36
def each
get_composite_type.key_set.each { |key| yield key }
end
|
#each_pair ⇒ Object
40
41
42
|
# File 'lib/jmx.rb', line 40
def each_pair
get_composite_type.key_set.each { |key| yield key, get(key) }
end
|