Class: MintPress::Utils::WLSTObject
- Inherits:
-
Object
- Object
- MintPress::Utils::WLSTObject
- 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
-
#channel_id ⇒ Object
Returns the value of attribute channel_id.
-
#native_value_retrieved ⇒ Object
Returns the value of attribute native_value_retrieved.
-
#session ⇒ Object
Returns the value of attribute session.
-
#symbol ⇒ Object
Returns the value of attribute symbol.
Instance Method Summary collapse
- #<(other) ⇒ Object
- #==(other) ⇒ Object
- #===(other) ⇒ Object
- #>(other) ⇒ Object
- #[](a) ⇒ Object
- #coerce(other) ⇒ Object
- #empty? ⇒ Boolean
-
#initialize(symbol, session, channel_id, possibly_native, loglevel) ⇒ WLSTObject
constructor
A new instance of WLSTObject.
- #inspect ⇒ Object
-
#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...
- #length ⇒ Object
- #method_missing(sym, *args, &block) ⇒ Object
- #native_obj ⇒ Object
-
#nativize ⇒ Object
Function to forcibly nativize a delayed object - this is used before calling wlst.invalid for safety...
- #nil? ⇒ 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....
- #to_a ⇒ Object
- #to_h ⇒ Object
- #to_s ⇒ Object
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_id ⇒ Object
Returns the value of attribute channel_id.
#native_value_retrieved ⇒ Object
Returns the value of attribute native_value_retrieved.
#session ⇒ Object
Returns the value of attribute session.
#symbol ⇒ Object
Returns the value of attribute symbol.
Instance Method Details
#<(other) ⇒ Object
#==(other) ⇒ Object
#===(other) ⇒ Object
#>(other) ⇒ Object
#[](a) ⇒ Object
#coerce(other) ⇒ Object
#empty? ⇒ Boolean
#inspect ⇒ Object
#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...
#length ⇒ Object
#native_obj ⇒ Object
#nativize ⇒ Object
Function to forcibly nativize a delayed object - this is used before calling wlst.invalid
for safety...
#nil? ⇒ 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!