Class: Break::TestingFrontend

Inherits:
Object
  • Object
show all
Defined in:
lib/break/testing.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTestingFrontend

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

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

.clearObject



24
25
26
# File 'lib/break/testing.rb', line 24

def clear
  stack.clear
end

.lastObject



20
21
22
# File 'lib/break/testing.rb', line 20

def last
  stack.last
end

.stackObject



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

#detachObject



39
# File 'lib/break/testing.rb', line 39

def detach; end

#notify(_message) ⇒ Object



43
# File 'lib/break/testing.rb', line 43

def notify(_message); end

#whereObject



41
# File 'lib/break/testing.rb', line 41

def where; end