Module: Buttons
- Defined in:
- lib/buttons.rb,
lib/buttons/button.rb,
lib/buttons/config.rb,
lib/buttons/router.rb,
lib/buttons/application.rb,
lib/buttons/javascript/js_arg.rb,
lib/buttons/javascript/js_var.rb,
lib/buttons/javascript/js_function.rb,
lib/buttons/javascript/js_generator.rb
Defined Under Namespace
Modules: Config, Javascript
Classes: Application, Button, Router
Class Method Summary
collapse
Class Method Details
.app(&block) ⇒ Object
9
10
11
12
13
|
# File 'lib/buttons.rb', line 9
def self.app(&block)
@app ||= Buttons::Application.new
@app.instance_eval(&block) unless block.nil?
@app
end
|
15
16
17
|
# File 'lib/buttons.rb', line 15
def self.configure
yield app if block_given?
end
|
.lib_root(*paths) ⇒ Object
5
6
7
|
# File 'lib/buttons.rb', line 5
def self.lib_root(*paths)
File.expand_path(File.join(File.dirname(__FILE__), 'buttons', *paths))
end
|