Class: AlGraph::GraphOutput

Inherits:
Object
  • Object
show all
Defined in:
lib/al_graph_base.rb

Overview

出力制御クラス

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (GraphOutput) initialize

Returns a new instance of GraphOutput



338
339
340
341
# File 'lib/al_graph_base.rb', line 338

def initialize()
  # writerクラスのデフォルトはStdoutWriter
  @writer = StdoutWriter.new
end

Instance Attribute Details

- (Object) writer

出力に使用するwriterクラス



336
337
338
# File 'lib/al_graph_base.rb', line 336

def writer
  @writer
end

Instance Method Details

- (Object) printf(format, *arg)



343
344
345
# File 'lib/al_graph_base.rb', line 343

def printf(format, *arg)
  @writer.printf(format, *arg)
end