Class: TestHookable

Inherits:
Object
  • Object
show all
Includes:
Rubee::Hookable
Defined in:
lib/tests/controllers/hookable_test.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Rubee::Hookable

included

Instance Attribute Details

#glueObject

Returns the value of attribute glue.



18
19
20
# File 'lib/tests/controllers/hookable_test.rb', line 18

def glue
  @glue
end

#valueObject

Returns the value of attribute value.



18
19
20
# File 'lib/tests/controllers/hookable_test.rb', line 18

def value
  @value
end

#vartyObject

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_helloObject



95
96
97
# File 'lib/tests/controllers/hookable_test.rb', line 95

def after_print_hello
  puts 'hello'
end

.around_print_helloObject



99
100
101
# File 'lib/tests/controllers/hookable_test.rb', line 99

def around_print_hello
  puts 'hello'
end

.around_print_worldObject



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_helloObject



91
92
93
# File 'lib/tests/controllers/hookable_test.rb', line 91

def before_print_hello
  puts 'hello'
end


103
104
105
# File 'lib/tests/controllers/hookable_test.rb', line 103

def print_world
  puts 'world'
end

Instance Method Details

#after_around_beforeObject



62
# File 'lib/tests/controllers/hookable_test.rb', line 62

def after_around_before; end

#after_before_aroundObject



68
# File 'lib/tests/controllers/hookable_test.rb', line 68

def after_before_around; end

#around_after_beforeObject



72
# File 'lib/tests/controllers/hookable_test.rb', line 72

def around_after_before; end

#around_before_afterObject



66
# File 'lib/tests/controllers/hookable_test.rb', line 66

def around_before_after; end

#before_after_aroundObject



70
# File 'lib/tests/controllers/hookable_test.rb', line 70

def before_after_around; end

#before_around_afterObject



64
# File 'lib/tests/controllers/hookable_test.rb', line 64

def before_around_after; end

#failed_aroundObject



82
# File 'lib/tests/controllers/hookable_test.rb', line 82

def failed_around; end

#prep_if_conditionObject



74
# File 'lib/tests/controllers/hookable_test.rb', line 74

def prep_if_condition; end

#prep_unless_conditionObject



78
# File 'lib/tests/controllers/hookable_test.rb', line 78

def prep_unless_condition; end

#set_if_conditionObject



76
# File 'lib/tests/controllers/hookable_test.rb', line 76

def set_if_condition; end

#set_unless_conditionObject



80
# File 'lib/tests/controllers/hookable_test.rb', line 80

def set_unless_condition; end

#success_aroundObject



84
# File 'lib/tests/controllers/hookable_test.rb', line 84

def success_around; end

#value_redObject



86
87
88
# File 'lib/tests/controllers/hookable_test.rb', line 86

def value_red
  value == 'red'
end