module OptionScrapper::Utils

Public Instance Methods

fail(message) click to toggle source
# File lib/optionscrapper/misc/utils.rb, line 16
def fail(message)
  puts "[error]: " << message
  exit 1
end
horizontal_line(length, symbol = '-', line = "") click to toggle source
# File lib/optionscrapper/misc/utils.rb, line 21
def horizontal_line(length, symbol = '-', line = "")
  length.times.each { line << "#{symbol}" }
  line
end
offset(length = 4, spacer = "") click to toggle source
# File lib/optionscrapper/misc/utils.rb, line 11
def offset(length = 4, spacer = "")
  length.times.each { spacer << " " }
  spacer
end