Module: Eastwood::Config::ClassMethods

Defined in:
lib/eastwood/config.rb

Instance Method Summary collapse

Instance Method Details

#export(*args) ⇒ Object



19
20
21
# File 'lib/eastwood/config.rb', line 19

def export( *args )
  exports.merge! *args
end

#exportsObject



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

#hashesObject



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