Class: Rtml::Test::TmlApplication::Snapshot

Inherits:
Object
  • Object
show all
Defined in:
lib/rtml/test/tml_application.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(screen, variables) ⇒ Snapshot

Returns a new instance of Snapshot.



316
317
318
319
# File 'lib/rtml/test/tml_application.rb', line 316

def initialize(screen, variables)
  @screen = screen
  @variables = variables.snapshot
end

Instance Attribute Details

#screenObject (readonly)

Returns the value of attribute screen.



314
315
316
# File 'lib/rtml/test/tml_application.rb', line 314

def screen
  @screen
end

#variablesObject (readonly)

Returns the value of attribute variables.



314
315
316
# File 'lib/rtml/test/tml_application.rb', line 314

def variables
  @variables
end

Instance Method Details

#==(a_snapshot) ⇒ Object



321
322
323
# File 'lib/rtml/test/tml_application.rb', line 321

def ==(a_snapshot)
  @screen == a_snapshot.screen && @variables == a_snapshot.variables
end