Module: CmdStanRb

Defined in:
lib/cmd_stan_rb.rb,
lib/cmd_stan_rb/version.rb,
lib/cmd_stan_rb/configuration.rb

Defined Under Namespace

Classes: Configuration, Error

Constant Summary collapse

VERSION =
"0.4.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



10
11
12
# File 'lib/cmd_stan_rb.rb', line 10

def configuration
  @configuration
end

Class Method Details

.build_binariesObject



12
13
14
# File 'lib/cmd_stan_rb.rb', line 12

def build_binaries
  system("make -C #{CmdStanRb.configuration.cmdstan_dir} build")
end

.configure {|configuration| ... } ⇒ Object

Yields:



25
26
27
# File 'lib/cmd_stan_rb.rb', line 25

def self.configure
  yield(configuration)
end

.resetObject



16
17
18
# File 'lib/cmd_stan_rb.rb', line 16

def reset
  system("make -C #{CmdStanRb.configuration.cmdstan_dir} clean-all")
end