Module: Voodoo::Config

Defined in:
lib/voodoo/config.rb

Overview

Methods to get and set configuration parameters

Defined Under Namespace

Classes: Configuration

Constant Summary collapse

IMPLEMENTATION_NAME =
'Voodoo Compiler'
IMPLEMENTATION_VERSION =
'1.1.1'
DEFAULT_CONFIGURATION =
Configuration.new

Class Method Summary collapse

Class Method Details

.default_architectureObject



59
60
61
# File 'lib/voodoo/config.rb', line 59

def default_architecture
  DEFAULT_CONFIGURATION.default_architecture
end

.default_architecture=(value) ⇒ Object



63
64
65
# File 'lib/voodoo/config.rb', line 63

def default_architecture= value
  DEFAULT_CONFIGURATION.default_architecture = value
end

.default_formatObject



66
67
68
# File 'lib/voodoo/config.rb', line 66

def default_format
  DEFAULT_CONFIGURATION.default_format
end

.default_format=(value) ⇒ Object



70
71
72
# File 'lib/voodoo/config.rb', line 70

def default_format= value
  DEFAULT_CONFIGURATION.default_format = value
end

.gas_commandObject



73
74
75
# File 'lib/voodoo/config.rb', line 73

def gas_command
  DEFAULT_CONFIGURATION.gas_command
end

.gas_command=(value) ⇒ Object



77
78
79
# File 'lib/voodoo/config.rb', line 77

def gas_command= value
  DEFAULT_CONFIGURATION.gas_command = value
end

.nasm_commandObject



80
81
82
# File 'lib/voodoo/config.rb', line 80

def nasm_command
  DEFAULT_CONFIGURATION.nasm_command
end

.nasm_command=(value) ⇒ Object



84
85
86
# File 'lib/voodoo/config.rb', line 84

def nasm_command= value
  DEFAULT_CONFIGURATION.nasm_command = value
end