Class: MetaInfo
Overview
$meta_info indicate what and how to do.
Instance Attribute Summary collapse
-
#lang ⇒ Object
Returns the value of attribute lang.
-
#mode ⇒ Object
Returns the value of attribute mode.
-
#opts ⇒ Object
Returns the value of attribute opts.
Instance Method Summary collapse
Instance Attribute Details
#lang ⇒ Object
Returns the value of attribute lang.
5 6 7 |
# File 'lib/hilbert/meta_info.rb', line 5 def lang @lang end |
#mode ⇒ Object
Returns the value of attribute mode.
5 6 7 |
# File 'lib/hilbert/meta_info.rb', line 5 def mode @mode end |
#opts ⇒ Object
Returns the value of attribute opts.
5 6 7 |
# File 'lib/hilbert/meta_info.rb', line 5 def opts @opts end |
Instance Method Details
#_load ⇒ Object
7 8 9 10 |
# File 'lib/hilbert/meta_info.rb', line 7 def _load # compiles into R as default. lang = :r end |
#lang_str ⇒ Object
24 25 26 |
# File 'lib/hilbert/meta_info.rb', line 24 def lang_str LANGS_HASH[@lang.to_s] end |
#langs_hash ⇒ Object
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 |