Module: Zgomot
- Defined in:
- lib/zgomot/boot.rb,
lib/zgomot/main.rb,
lib/zgomot/config.rb
Defined Under Namespace
Modules: Comp, Delegator, Midi, UI Classes: Boot, Drivers, Error
Constant Summary collapse
- VERSION =
"0.0.0"- DISPATCHER_POLL =
1.133- DEFAULT_CONFIG =
{ :beats_per_minute => 120, :time_signature => '4/4', :resolution => '1/32' }
Class Attribute Summary collapse
-
.app_path ⇒ Object
Returns the value of attribute app_path.
-
.config ⇒ Object
Returns the value of attribute config.
-
.config_file ⇒ Object
Returns the value of attribute config_file.
-
.live ⇒ Object
Returns the value of attribute live.
-
.log_file ⇒ Object
Returns the value of attribute log_file.
Class Method Summary collapse
Class Attribute Details
.app_path ⇒ Object
Returns the value of attribute app_path.
20 21 22 |
# File 'lib/zgomot/config.rb', line 20 def app_path @app_path end |
.config ⇒ Object
Returns the value of attribute config.
20 21 22 |
# File 'lib/zgomot/config.rb', line 20 def config @config end |
.config_file ⇒ Object
Returns the value of attribute config_file.
20 21 22 |
# File 'lib/zgomot/config.rb', line 20 def config_file @config_file end |
.live ⇒ Object
Returns the value of attribute live.
20 21 22 |
# File 'lib/zgomot/config.rb', line 20 def live @live end |
.log_file ⇒ Object
Returns the value of attribute log_file.
20 21 22 |
# File 'lib/zgomot/config.rb', line 20 def log_file @log_file end |
Class Method Details
.add_path(dir) ⇒ Object
23 24 25 |
# File 'lib/zgomot/config.rb', line 23 def add_path(dir) File.join(Zgomot.app_path, dir) end |
.logger ⇒ Object
21 |
# File 'lib/zgomot/config.rb', line 21 def logger; @logger ||= Logger.new(STDOUT); end |
.logger=(logger) ⇒ Object
22 |
# File 'lib/zgomot/config.rb', line 22 def logger=(logger); @logger = logger; end |