Class: Tablescript::LibraryDumper
- Inherits:
-
Object
- Object
- Tablescript::LibraryDumper
- Defined in:
- lib/tablescript/library_dumper.rb
Overview
LibraryDumper
Instance Method Summary collapse
- #dump(library = nil) ⇒ Object
-
#initialize(stream = STDOUT) ⇒ LibraryDumper
constructor
A new instance of LibraryDumper.
Constructor Details
#initialize(stream = STDOUT) ⇒ LibraryDumper
Returns a new instance of LibraryDumper.
6 7 8 |
# File 'lib/tablescript/library_dumper.rb', line 6 def initialize(stream = STDOUT) @stream = stream end |
Instance Method Details
#dump(library = nil) ⇒ Object
10 11 12 |
# File 'lib/tablescript/library_dumper.rb', line 10 def dump(library = nil) dump_namespace(library.nil? ? Library.instance.root : library) end |