Class: Break::TestingFrontend
- Inherits:
-
Object
- Object
- Break::TestingFrontend
- Defined in:
- lib/break/testing.rb
Instance Attribute Summary collapse
-
#session ⇒ Object
readonly
Returns the value of attribute session.
Class Method Summary collapse
Instance Method Summary collapse
- #attach(session) ⇒ Object
- #detach ⇒ Object
-
#initialize ⇒ TestingFrontend
constructor
A new instance of TestingFrontend.
- #notify(_message) ⇒ Object
- #where ⇒ Object
Constructor Details
#initialize ⇒ TestingFrontend
Returns a new instance of TestingFrontend.
31 32 33 |
# File 'lib/break/testing.rb', line 31 def initialize self.class.stack << self end |
Instance Attribute Details
#session ⇒ Object (readonly)
Returns the value of attribute session.
29 30 31 |
# File 'lib/break/testing.rb', line 29 def session @session end |
Class Method Details
.[](index) ⇒ Object
16 17 18 |
# File 'lib/break/testing.rb', line 16 def [](index) stack[index] end |
.build(&block) ⇒ Object
8 9 10 |
# File 'lib/break/testing.rb', line 8 def build(&block) Class.new(self, &block) end |
.clear ⇒ Object
24 25 26 |
# File 'lib/break/testing.rb', line 24 def clear stack.clear end |
.last ⇒ Object
20 21 22 |
# File 'lib/break/testing.rb', line 20 def last stack.last end |
.stack ⇒ Object
12 13 14 |
# File 'lib/break/testing.rb', line 12 def stack @stack ||= [] end |
Instance Method Details
#attach(session) ⇒ Object
35 36 37 |
# File 'lib/break/testing.rb', line 35 def attach(session) @session = session end |
#detach ⇒ Object
39 |
# File 'lib/break/testing.rb', line 39 def detach; end |
#notify(_message) ⇒ Object
43 |
# File 'lib/break/testing.rb', line 43 def notify(); end |
#where ⇒ Object
41 |
# File 'lib/break/testing.rb', line 41 def where; end |