Module: Eastwood::Config::ClassMethods
- Defined in:
- lib/eastwood/config.rb
Instance Method Summary collapse
- #export(*args) ⇒ Object
- #exports ⇒ Object
- #hash(name, route) ⇒ Object
- #hashes ⇒ Object
- #reset! ⇒ Object
Instance Method Details
#export(*args) ⇒ Object
19 20 21 |
# File 'lib/eastwood/config.rb', line 19 def export( *args ) exports.merge! *args end |
#exports ⇒ Object
23 24 25 |
# File 'lib/eastwood/config.rb', line 23 def exports @@exports ||= Hash.new end |
#hash(name, route) ⇒ Object
11 12 13 |
# File 'lib/eastwood/config.rb', line 11 def hash( name, route ) hashes[ name ] = route end |
#hashes ⇒ Object
15 16 17 |
# File 'lib/eastwood/config.rb', line 15 def hashes @@hashes ||= Hash.new end |
#reset! ⇒ Object
31 32 33 34 35 |
# File 'lib/eastwood/config.rb', line 31 def reset! @@default_route_format = :json @@javascript_route_style = :underscore @@javascript_namespace = nil end |