Sha256: 3781a8671bb3429775ec26ae177a745e3a7349856be490e45cef30e6aa17fda1

Contents?: true

Size: 476 Bytes

Versions: 2

Compression:

Stored size: 476 Bytes

Contents

# $meta_info indicate what and how to do.
require 'pry'
class MetaInfo
  include Singleton
  attr_accessor :lang, :opts, :mode

  def _load
    # compiles into R as default.
    lang = :r
  end

  # TODO: YAML.load_file("./lib/qlang/utils/langs.yml")['langs']
  def langs_hash
    {
      r:"R",
      ruby: "Ruby",
      python: "Pyhton",
      haskell: "Haskell",
      scala: "Scala",
      js: "Javascript"
    }
  end

  def lang_str
    LANGS_HASH[@lang.to_s]
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
qlang-0.0.27182122 lib/qlang/meta_info.rb
qlang-0.0.27182121 lib/qlang/meta_info.rb