Class: Liza::UnitTest::TestMethodsDefinedHelper
- Inherits:
-
Object
- Object
- Liza::UnitTest::TestMethodsDefinedHelper
- Defined in:
- lib/liza/unit_test.rb
Instance Attribute Summary collapse
-
#instance_methods ⇒ Object
readonly
Returns the value of attribute instance_methods.
-
#instance_methods_caller ⇒ Object
readonly
Returns the value of attribute instance_methods_caller.
-
#methods ⇒ Object
readonly
Returns the value of attribute methods.
-
#methods_caller ⇒ Object
readonly
Returns the value of attribute methods_caller.
Instance Method Summary collapse
-
#initialize ⇒ TestMethodsDefinedHelper
constructor
A new instance of TestMethodsDefinedHelper.
- #on_instance(*args) ⇒ Object
- #on_self(*args) ⇒ Object
Constructor Details
#initialize ⇒ TestMethodsDefinedHelper
Returns a new instance of TestMethodsDefinedHelper.
29 30 31 32 |
# File 'lib/liza/unit_test.rb', line 29 def initialize @methods, @instance_methods = [], [] @methods_caller, @instance_methods_caller = caller, caller end |
Instance Attribute Details
#instance_methods ⇒ Object (readonly)
Returns the value of attribute instance_methods.
27 28 29 |
# File 'lib/liza/unit_test.rb', line 27 def instance_methods @instance_methods end |
#instance_methods_caller ⇒ Object (readonly)
Returns the value of attribute instance_methods_caller.
27 28 29 |
# File 'lib/liza/unit_test.rb', line 27 def instance_methods_caller @instance_methods_caller end |
#methods ⇒ Object (readonly)
Returns the value of attribute methods.
26 27 28 |
# File 'lib/liza/unit_test.rb', line 26 def methods @methods end |
#methods_caller ⇒ Object (readonly)
Returns the value of attribute methods_caller.
26 27 28 |
# File 'lib/liza/unit_test.rb', line 26 def methods_caller @methods_caller end |
Instance Method Details
#on_instance(*args) ⇒ Object
39 40 41 42 |
# File 'lib/liza/unit_test.rb', line 39 def on_instance(*args) @instance_methods = args @instance_methods_caller = caller end |
#on_self(*args) ⇒ Object
34 35 36 37 |
# File 'lib/liza/unit_test.rb', line 34 def on_self(*args) @methods = args @methods_caller = caller end |