Class: Maglev::Snapshot
- Inherits:
-
Object
- Object
- Maglev::Snapshot
- Defined in:
- lib/maglev/snapshot.rb
Instance Method Summary collapse
-
#initialize(lines) ⇒ Snapshot
constructor
A new instance of Snapshot.
- #to_s ⇒ Object
Constructor Details
#initialize(lines) ⇒ Snapshot
Returns a new instance of Snapshot.
5 6 7 8 |
# File 'lib/maglev/snapshot.rb', line 5 def initialize(lines) @text = lines.join("\n").freeze freeze end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'lib/maglev/snapshot.rb', line 10 def to_s @text end |