Class: Enginevib::Output

Inherits:
Object
  • Object
show all
Defined in:
lib/enginevib/output.rb

Overview

Defines an output class

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeOutput

Returns a new instance of Output.



10
11
12
13
# File 'lib/enginevib/output.rb', line 10

def initialize
  return if $TEST
  init_renderer
end

Instance Attribute Details

#screenObject

Returns the value of attribute screen.



6
7
8
# File 'lib/enginevib/output.rb', line 6

def screen
  @screen
end

#warning=(value) ⇒ Object (writeonly)

Sets the attribute warning

Parameters:

  • value

    the value to set the attribute warning to.



8
9
10
# File 'lib/enginevib/output.rb', line 8

def warning=(value)
  @warning = value
end

#windowObject

Returns the value of attribute window.



6
7
8
# File 'lib/enginevib/output.rb', line 6

def window
  @window
end

Instance Method Details

#refresh_display(data, stats) ⇒ Object



15
16
17
18
# File 'lib/enginevib/output.rb', line 15

def refresh_display(data, stats)
  return if $TEST
  render_message data, stats
end