Class: Liza::UnitTest::TestMethodsDefinedHelper

Inherits:
Object
  • Object
show all
Defined in:
lib/liza/unit_test.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTestMethodsDefinedHelper

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_methodsObject (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_callerObject (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

#methodsObject (readonly)

Returns the value of attribute methods.



26
27
28
# File 'lib/liza/unit_test.rb', line 26

def methods
  @methods
end

#methods_callerObject (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