Class: MintPress::Utils::WLSTObject

Inherits:
Object
  • Object
show all
Includes:
MintLogger
Defined in:
src/mintpress-utils/lib/mintpress-utils/wlst-session.rb

Properties (Read/Write)

Properties (Read Only)

Constant Summary

Constants included from MintLogger

MintLogger::DEBUG, MintLogger::ERROR, MintLogger::FATAL, MintLogger::INFO, MintLogger::UNKNOWN, MintLogger::VERBOSE, MintLogger::WARN

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from MintLogger::Utils::Common

#boolean_val, #has_value?, #no_value?, #nvl, #path_as_symbol, #ruby_level_to_send

Constructor Details

#initialize(symbol, session, channel_id, possibly_native, loglevel) ⇒ WLSTObject

Returns a new instance of WLSTObject.

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(sym, *args, &block) ⇒ Object

Instance Attribute Details

#channel_idObject

Returns the value of attribute channel_id.

#native_value_retrievedObject

Returns the value of attribute native_value_retrieved.

#sessionObject

Returns the value of attribute session.

#symbolObject

Returns the value of attribute symbol.

Instance Method Details

#<(other) ⇒ Object

#==(other) ⇒ Object

#===(other) ⇒ Object

#>(other) ⇒ Object

#[](a) ⇒ Object

#coerce(other) ⇒ Object

#empty?Boolean

Returns:

  • (Boolean)

#inspectObject

#is_a?(object) ⇒ Boolean

is_a? needs to return the "real" object if it makes sense to have one - anyone who needs the _actual_ object should do a compare on .class - this is an important implementation detail for working _within_ this class, specifically, since it's the currently annointed way to test if an object is, in fact, us - this way, things like `is_a?(Hash)` work on returns, which is important for OTD, for example...

Returns:

  • (Boolean)

#lengthObject

#native_objObject

#nativizeObject

Function to forcibly nativize a delayed object - this is used before calling wlst.invalid for safety...

#nil?Boolean

Returns:

  • (Boolean)

#respond_to_missing?(sym, include_private = false) ⇒ Boolean

Ensure things like to_str/to_ary behave in rubyish ways, so that things like `"foo" + delayed_object` actually call the right things, and so all of our WLST works - this is because ruby requires these for implicit conversions to work.... I did some tests that shows that this won't generally get called, so it shouldn't nativize things "generally" In case you ever need to check this, though, I shoved an environment variable based info in here, so you can see what gets called exactly!

Returns:

  • (Boolean)

#to_aObject

#to_hObject

#to_sObject