Method: Arql::VD#initialize

Defined in:
lib/arql/vd.rb

#initialize {|_self| ... } ⇒ VD

Returns a new instance of VD.

Yields:

  • (_self)

Yield Parameters:

  • _self (Arql::VD)

    the object that the method was called on



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/arql/vd.rb', line 9

def initialize
  return unless check_command_installation
  @rows = []
  yield self
  command = "#{COMMAND} -f csv"
  IO.popen(command, 'w+') do |io|
    io.puts(csv)
    io.close_write
  end
  print "\033[5 q"
end