Class: TestHookable
- Inherits:
-
Object
- Object
- TestHookable
- Includes:
- Rubee::Hookable
- Defined in:
- lib/tests/controllers/hookable_test.rb
Instance Attribute Summary collapse
-
#glue ⇒ Object
Returns the value of attribute glue.
-
#value ⇒ Object
Returns the value of attribute value.
-
#varty ⇒ Object
Returns the value of attribute varty.
Class Method Summary collapse
- .after_print_hello ⇒ Object
- .around_print_hello ⇒ Object
- .around_print_world ⇒ Object
- .before_print_hello ⇒ Object
- .print_world ⇒ Object
Instance Method Summary collapse
- #after_around_before ⇒ Object
- #after_before_around ⇒ Object
- #around_after_before ⇒ Object
- #around_before_after ⇒ Object
- #before_after_around ⇒ Object
- #before_around_after ⇒ Object
- #failed_around ⇒ Object
- #prep_if_condition ⇒ Object
- #prep_unless_condition ⇒ Object
- #set_if_condition ⇒ Object
- #set_unless_condition ⇒ Object
- #success_around ⇒ Object
- #value_red ⇒ Object
Methods included from Rubee::Hookable
Instance Attribute Details
#glue ⇒ Object
Returns the value of attribute glue.
18 19 20 |
# File 'lib/tests/controllers/hookable_test.rb', line 18 def glue @glue end |
#value ⇒ Object
Returns the value of attribute value.
18 19 20 |
# File 'lib/tests/controllers/hookable_test.rb', line 18 def value @value end |
#varty ⇒ Object
Returns the value of attribute varty.
18 19 20 |
# File 'lib/tests/controllers/hookable_test.rb', line 18 def varty @varty end |
Class Method Details
.after_print_hello ⇒ Object
95 96 97 |
# File 'lib/tests/controllers/hookable_test.rb', line 95 def after_print_hello puts 'hello' end |
.around_print_hello ⇒ Object
99 100 101 |
# File 'lib/tests/controllers/hookable_test.rb', line 99 def around_print_hello puts 'hello' end |
.around_print_world ⇒ Object
107 108 109 110 111 112 |
# File 'lib/tests/controllers/hookable_test.rb', line 107 def around_print_world puts 'world1' res = yield puts 'world2' res end |
.before_print_hello ⇒ Object
91 92 93 |
# File 'lib/tests/controllers/hookable_test.rb', line 91 def before_print_hello puts 'hello' end |
.print_world ⇒ Object
103 104 105 |
# File 'lib/tests/controllers/hookable_test.rb', line 103 def print_world puts 'world' end |
Instance Method Details
#after_around_before ⇒ Object
62 |
# File 'lib/tests/controllers/hookable_test.rb', line 62 def after_around_before; end |
#after_before_around ⇒ Object
68 |
# File 'lib/tests/controllers/hookable_test.rb', line 68 def after_before_around; end |
#around_after_before ⇒ Object
72 |
# File 'lib/tests/controllers/hookable_test.rb', line 72 def around_after_before; end |
#around_before_after ⇒ Object
66 |
# File 'lib/tests/controllers/hookable_test.rb', line 66 def around_before_after; end |
#before_after_around ⇒ Object
70 |
# File 'lib/tests/controllers/hookable_test.rb', line 70 def before_after_around; end |
#before_around_after ⇒ Object
64 |
# File 'lib/tests/controllers/hookable_test.rb', line 64 def before_around_after; end |
#failed_around ⇒ Object
82 |
# File 'lib/tests/controllers/hookable_test.rb', line 82 def failed_around; end |
#prep_if_condition ⇒ Object
74 |
# File 'lib/tests/controllers/hookable_test.rb', line 74 def prep_if_condition; end |
#prep_unless_condition ⇒ Object
78 |
# File 'lib/tests/controllers/hookable_test.rb', line 78 def prep_unless_condition; end |
#set_if_condition ⇒ Object
76 |
# File 'lib/tests/controllers/hookable_test.rb', line 76 def set_if_condition; end |
#set_unless_condition ⇒ Object
80 |
# File 'lib/tests/controllers/hookable_test.rb', line 80 def set_unless_condition; end |
#success_around ⇒ Object
84 |
# File 'lib/tests/controllers/hookable_test.rb', line 84 def success_around; end |
#value_red ⇒ Object
86 87 88 |
# File 'lib/tests/controllers/hookable_test.rb', line 86 def value_red value == 'red' end |