Sha256: 34f09d736232c326722197e935c4b5acd9e2b6e15f9f8b18743e426f3fc51194

Contents?: true

Size: 466 Bytes

Versions: 9

Compression:

Stored size: 466 Bytes

Contents

# $meta_info indicate what and how to do.

class MetaInfo
  include Singleton
  attr_accessor :lang, :opts, :mode

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

  # TODO: YAML.load_file("./lib/hilbert/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

9 entries across 9 versions & 1 rubygems

Version Path
hilbert-0.0.2700420 lib/hilbert/meta_info.rb
hilbert-0.0.2700410 lib/hilbert/meta_info.rb
hilbert-0.0.2700400 lib/hilbert/meta_info.rb
hilbert-0.0.2700320 lib/hilbert/meta_info.rb
hilbert-0.0.2700300 lib/hilbert/meta_info.rb
hilbert-0.0.2700210 lib/hilbert/meta_info.rb
hilbert-0.0.2700110 lib/hilbert/meta_info.rb
hilbert-0.0.2700100 lib/hilbert/meta_info.rb
hilbert-0.0.2700001 lib/hilbert/meta_info.rb