Class: MetaInfo

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/hilbert/meta_info.rb

Overview

$meta_info indicate what and how to do.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#langObject

Returns the value of attribute lang.



5
6
7
# File 'lib/hilbert/meta_info.rb', line 5

def lang
  @lang
end

#modeObject

Returns the value of attribute mode.



5
6
7
# File 'lib/hilbert/meta_info.rb', line 5

def mode
  @mode
end

#optsObject

Returns the value of attribute opts.



5
6
7
# File 'lib/hilbert/meta_info.rb', line 5

def opts
  @opts
end

Instance Method Details

#_loadObject



7
8
9
10
# File 'lib/hilbert/meta_info.rb', line 7

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

#lang_strObject



24
25
26
# File 'lib/hilbert/meta_info.rb', line 24

def lang_str
  LANGS_HASH[@lang.to_s]
end

#langs_hashObject



13
14
15
16
17
18
19
20
21
22
# File 'lib/hilbert/meta_info.rb', line 13

def langs_hash
  {
    r: 'R',
    ruby: 'Ruby',
    python: 'Pyhton',
    haskell: 'Haskell',
    scala: 'Scala',
    js: 'Javascript'
  }
end