Class: ActiveExplorer::Writer
- Inherits:
-
Object
- Object
- ActiveExplorer::Writer
- Defined in:
- lib/writer.rb
Instance Method Summary collapse
-
#initialize(exploration) ⇒ Writer
constructor
A new instance of Writer.
- #write ⇒ Object
Constructor Details
#initialize(exploration) ⇒ Writer
Returns a new instance of Writer.
3 4 5 |
# File 'lib/writer.rb', line 3 def initialize(exploration) @exploration = exploration end |
Instance Method Details
#write ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/writer.rb', line 7 def write exploration_hash = @exploration.get_hash puts "\nExplored #{exploration_hash[:class_name]}(#{exploration_hash[:attributes][:id]}):\n\n" write_object(exploration_hash) puts "\n" end |