class Coopy::TableIO

Public Class Methods

new() click to toggle source
# File lib/lib/coopy/table_io.rb, line 7
def initialize
end

Public Instance Methods

args() click to toggle source
# File lib/lib/coopy/table_io.rb, line 23
def args 
  HxSys.args
end
async() click to toggle source
# File lib/lib/coopy/table_io.rb, line 44
def async 
  false
end
command(cmd,args) click to toggle source
# File lib/lib/coopy/table_io.rb, line 35
def command(cmd,args)
  begin
    return HxSys.command(cmd,args)
  rescue => e
    e = hx_rescued(e)
    return 1
  end
end
exists(path) click to toggle source
# File lib/lib/coopy/table_io.rb, line 48
def exists(path)
  File.exist?(path)
end
get_content(name) click to toggle source
# File lib/lib/coopy/table_io.rb, line 14
def get_content(name)
  ::Sys::Io::HxFile.get_content(name)
end
is_tty() click to toggle source
# File lib/lib/coopy/table_io.rb, line 56
def is_tty 
  return true if HxSys.get_env("GIT_PAGER_IN_USE") == "true"
  false
end
is_tty_known() click to toggle source
# File lib/lib/coopy/table_io.rb, line 52
def is_tty_known 
  false
end
open_sqlite_database(path) click to toggle source
# File lib/lib/coopy/table_io.rb, line 61
def open_sqlite_database(path)
  nil
end
save_content(name,txt) click to toggle source
# File lib/lib/coopy/table_io.rb, line 18
def save_content(name,txt)
  ::Sys::Io::HxFile.save_content(name,txt)
  true
end
send_to_browser(html) click to toggle source
# File lib/lib/coopy/table_io.rb, line 65
def send_to_browser(html)
  puts "do not know how to send to browser in this language"
end
valid() click to toggle source
# File lib/lib/coopy/table_io.rb, line 10
def valid 
  true
end
write_stderr(txt) click to toggle source
# File lib/lib/coopy/table_io.rb, line 31
def write_stderr(txt)
  HxSys.stderr.write_string(txt)
end
write_stdout(txt) click to toggle source
# File lib/lib/coopy/table_io.rb, line 27
def write_stdout(txt)
  HxSys.stdout.write_string(txt)
end