class BibtexToScrapbox::CLI

Public Instance Methods

convert(*paths) click to toggle source
# File lib/cli.rb, line 11
def convert(*paths)
  if paths.length > 0
    paths.each do |path|
      BibtexToScrapbox::Converter.add(path)
    end
  else
    while path=$stdin.gets
      BibtexToScrapbox::Converter.add(path.chomp)
    end
  end
  BibtexToScrapbox::Converter.perform()
end
version() click to toggle source
# File lib/cli.rb, line 25
def version
  p BibtexToScrapbox::VERSION
end