Class: Lebowski::Foundation::SCObject
- Inherits:
-
ProxyObject
- Object
- ProxyObject
- Lebowski::Foundation::SCObject
- Defined in:
- lib/lebowski/foundation/sc_object.rb
Direct Known Subclasses
Constant Summary collapse
- @@represented_sc_classes =
{}
Constants included from Lebowski::Foundation
SC_BRANCH_CLOSED, SC_BRANCH_OPEN, SC_BUTTON1_STATUS, SC_BUTTON2_STATUS, SC_BUTTON3_STATUS, SC_LEAF_NODE, SC_MIXED_STATE, SC_PICKER_FIXED, SC_PICKER_MENU, SC_PICKER_POINTER, SC_T_ARRAY, SC_T_BOOL, SC_T_CLASS, SC_T_ERROR, SC_T_FUNCTION, SC_T_HASH, SC_T_NULL, SC_T_NUMBER, SC_T_OBJECT, SC_T_STRING, SC_T_UNDEFINED
Constants included from Mixins::WaitActions
Mixins::WaitActions::DEFAULT_TIMEOUT
Instance Attribute Summary
Attributes inherited from ProxyObject
#driver, #name, #parent, #rel_path
Class Method Summary collapse
Instance Method Summary collapse
- #has_represented_sc_class? ⇒ Boolean
- #kind_of_represented_sc_class? ⇒ Boolean
- #represented_sc_class ⇒ Object
Methods inherited from ProxyObject
#==, #[], #abs_path, #abs_path_with, #define, #define_proxy, #init_ext, #initialize, #method_missing, #none?, #object?, #proxy, #represent_as, #sc_all_classes, #sc_class, #sc_guid, #sc_kind_of?, #sc_path_defined?, #sc_type_of, #unravel_relative_path
Methods included from Mixins::DefinePathsSupport
#define_path, #define_paths_for, #defined_path, #defined_paths, #path_defined?, #root_defined_path_part, #root_defined_path_part=
Methods included from Mixins::WaitActions
Constructor Details
This class inherits a constructor from Lebowski::Foundation::ProxyObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Lebowski::Foundation::ProxyObject
Class Method Details
.represented_sc_class ⇒ Object
19 20 21 |
# File 'lib/lebowski/foundation/sc_object.rb', line 19 def self.represented_sc_class return @@represented_sc_classes[self.to_s] end |
.representing_sc_class(sc_class) ⇒ Object
13 14 15 16 17 |
# File 'lib/lebowski/foundation/sc_object.rb', line 13 def self.representing_sc_class(sc_class) raise ArgumentError "sc_class must be a non-empty string" if (not sc_class.kind_of? String) or sc_class.empty? return if @@represented_sc_classes.has_key? self.to_s @@represented_sc_classes[self.to_s] = sc_class end |
Instance Method Details
#has_represented_sc_class? ⇒ Boolean
27 28 29 |
# File 'lib/lebowski/foundation/sc_object.rb', line 27 def has_represented_sc_class?() return (not represented_sc_class.nil?) end |
#kind_of_represented_sc_class? ⇒ Boolean
31 32 33 34 |
# File 'lib/lebowski/foundation/sc_object.rb', line 31 def kind_of_represented_sc_class?() return false if (not has_represented_sc_class?) return sc_kind_of?(represented_sc_class) end |
#represented_sc_class ⇒ Object
23 24 25 |
# File 'lib/lebowski/foundation/sc_object.rb', line 23 def represented_sc_class return @@represented_sc_classes[self.class.to_s] end |