Class: RSpecLive::Display

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec-live/display.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDisplay

Returns a new instance of Display.



7
8
9
10
11
12
# File 'lib/rspec-live/display.rb', line 7

def initialize
  @terminal = Terminal.new
  @watcher_display = WatcherDisplay.new(@terminal.add_section :xalign => :center)
  @terminal.add_section :display => :block, :content => key_command_info, :color => :blue
  @suite_display = SuiteDisplay.new(@terminal.add_section :display => :block)
end

Instance Attribute Details

#suite_displayObject (readonly)

Returns the value of attribute suite_display.



5
6
7
# File 'lib/rspec-live/display.rb', line 5

def suite_display
  @suite_display
end

#watcher_displayObject (readonly)

Returns the value of attribute watcher_display.



5
6
7
# File 'lib/rspec-live/display.rb', line 5

def watcher_display
  @watcher_display
end