Class: Rtml::Test::TmlApplication::Snapshot
- Inherits:
-
Object
- Object
- Rtml::Test::TmlApplication::Snapshot
- Defined in:
- lib/rtml/test/tml_application.rb
Instance Attribute Summary collapse
-
#screen ⇒ Object
readonly
Returns the value of attribute screen.
-
#variables ⇒ Object
readonly
Returns the value of attribute variables.
Instance Method Summary collapse
- #==(a_snapshot) ⇒ Object
-
#initialize(screen, variables) ⇒ Snapshot
constructor
A new instance of Snapshot.
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
#screen ⇒ Object (readonly)
Returns the value of attribute screen.
314 315 316 |
# File 'lib/rtml/test/tml_application.rb', line 314 def screen @screen end |
#variables ⇒ Object (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 |