RubyClass function ( String arg0 , RubyClass arg1 ) { IRubyObject loc0 = get ( arg0 ) ; if ( loc0 == null || loc0 . isNil ( ) ) return arg1 ; return ( RubyClass ) loc0 ; }
reads the setting from the options hash . if it is nil or undefined , returns the default value given . if not , ensures it is a rubyclass instance and shares the same allocator as the default value i.e. for the basic types which have their specific allocators , this ensures the passed value is a subclass of them . concode_field_sep RubyHash opts concode_elem_sep ThreadContext context concode_elem_sep Ruby runtime concode_elem_sep RuntimeInfo info concode_field_sep int getInt concode_elem_sep RubyHash getHash concode_elem_sep IRubyObject get concode_elem_sep ByteList getString concode_elem_sep RubyString getString concode_elem_sep boolean getBool concode_elem_sep RuntimeInfo getRuntimeInfo