Method: JMX::JavaTypeAware#to_ruby
- Defined in:
- lib/dynamic_mbean.rb
#to_ruby(type_name) ⇒ Object
TODO: I’m not sure this is strictly needed, but funky things can happen if you are expecting your attributes (from the ruby side) to be ruby types and they are java types.
34 35 36 |
# File 'lib/dynamic_mbean.rb', line 34 def to_ruby(type_name) SIMPLE_TYPES[type_name][1] || lambda {|param| param} end |