Module: Ramaze
- Extended by:
- Innate::SingletonMethods
- Defined in:
- lib/ramaze/view.rb,
lib/ramaze/log.rb,
lib/ramaze/app.rb,
lib/ramaze/files.rb,
lib/ramaze/cache.rb,
lib/ramaze/helper.rb,
lib/ramaze/gestalt.rb,
lib/ramaze/request.rb,
lib/ramaze/version.rb,
lib/ramaze/current.rb,
lib/ramaze/log/hub.rb,
lib/ramaze/reloader.rb,
lib/ramaze/response.rb,
lib/ramaze/view/haml.rb,
lib/ramaze/view/sass.rb,
lib/ramaze/view/tagz.rb,
lib/ramaze/cache/lru.rb,
lib/ramaze/controller.rb,
lib/ramaze/log/syslog.rb,
lib/ramaze/bin/runner.rb,
lib/ramaze/view/lokar.rb,
lib/ramaze/bin/create.rb,
lib/ramaze/log/logger.rb,
lib/ramaze/helper/user.rb,
lib/ramaze/view/ezamar.rb,
lib/ramaze/view/erubis.rb,
lib/ramaze/helper/tagz.rb,
lib/ramaze/helper/auth.rb,
lib/ramaze/view/tenjin.rb,
lib/ramaze/helper/link.rb,
lib/ramaze/cache/redis.rb,
lib/ramaze/log/logging.rb,
lib/ramaze/view/liquid.rb,
lib/ramaze/helper/csrf.rb,
lib/ramaze/view/nagoro.rb,
lib/ramaze/helper/cache.rb,
lib/ramaze/helper/email.rb,
lib/ramaze/view/erector.rb,
lib/ramaze/helper/flash.rb,
lib/ramaze/helper/xhtml.rb,
lib/ramaze/view/gestalt.rb,
lib/ramaze/log/informer.rb,
lib/ramaze/cache/sequel.rb,
lib/ramaze/helper/stack.rb,
lib/ramaze/helper/bench.rb,
lib/ramaze/cache/moneta.rb,
lib/ramaze/view/slippers.rb,
lib/ramaze/helper/thread.rb,
lib/ramaze/view/mustache.rb,
lib/ramaze/helper/layout.rb,
lib/ramaze/helper/maruku.rb,
lib/ramaze/helper/upload.rb,
lib/ramaze/helper/gestalt.rb,
lib/ramaze/helper/erector.rb,
lib/ramaze/cache/memcache.rb,
lib/ramaze/helper/markaby.rb,
lib/ramaze/view/remarkably.rb,
lib/ramaze/helper/identity.rb,
lib/ramaze/helper/localize.rb,
lib/ramaze/helper/gravatar.rb,
lib/ramaze/helper/paginate.rb,
lib/ramaze/helper/blue_form.rb,
lib/ramaze/helper/send_file.rb,
lib/ramaze/helper/remarkably.rb,
lib/ramaze/helper/formatting.rb,
lib/ramaze/controller/default.rb,
lib/ramaze/reloader/watch_stat.rb,
lib/ramaze/snippets/string/esc.rb,
lib/ramaze/cache/localmemcache.rb,
lib/ramaze/log/rotatinginformer.rb,
lib/ramaze/snippets/string/color.rb,
lib/ramaze/helper/simple_captcha.rb,
lib/ramaze/reloader/watch_inotify.rb,
lib/ramaze/helper/request_accessor.rb,
lib/ramaze/snippets/object/__dir__.rb,
lib/ramaze/snippets/string/unindent.rb,
lib/ramaze/spec/helper/pretty_output.rb,
lib/ramaze/snippets/string/camel_case.rb,
lib/ramaze/snippets/string/snake_case.rb,
lib/ramaze/snippets/ramaze/deprecated.rb,
lib/ramaze.rb
Overview
Namespace for Ramaze
THINK: * for now, we don't extend this with Innate to keep things clean. But we should eventually do it for a simple API, or people always have to find out whether something is in Innate or Ramaze. No matter which way we go, we should keep references point to the original location to avoid too much confusion for core developers.
Defined Under Namespace
Modules: Bin, CoreExtensions, Logger, Logging Classes: App, Controller, Current, DefaultController, Files, Gestalt, Reloader, Request, Response, SpecLogger
Constant Summary
- Log =
Innate::Log
- AppMap =
An application is a collection of controllers and options that have a common name. Every application has a location it dispatches from, this behaves similar to Rack::URLMap.
Innate::URLMap.new
- View =
Innate::View
- Cache =
Innate::Cache
- Helper =
Innate::Helper
- VERSION =
'2012.12.08'
- OpenIDStore =
Constant for storing meta-information persistent
OpenID::Store::Filesystem.new(openid_store_file)
- DEPRECATED_CONSTANTS =
{ :BASEDIR => :ROOT, :Template => :View, :Optional => :Optioned, }
- ROOT =
File.(File.dirname(__FILE__))
Class Attribute Summary (collapse)
-
+ (Object) options
Returns the value of attribute options.
Class Method Summary (collapse)
-
+ (Object) const_missing(name)
-
+ (Object) core
-
+ (Object) deprecated(from, to = nil)
-
+ (Object) to(object)
:nodoc:.
Methods included from Innate::SingletonMethods
Rewrite, Route, at, defer, map, node, node_from_backtrace, sync, to
Class Attribute Details
+ (Object) options
Returns the value of attribute options
19 20 21 |
# File 'lib/ramaze.rb', line 19 def @options end |
Class Method Details
+ (Object) const_missing(name)
15 16 17 18 19 20 21 22 |
# File 'lib/ramaze/snippets/ramaze/deprecated.rb', line 15 def self.const_missing(name) if to = DEPRECATED_CONSTANTS[name] Log.warn "Ramaze::#{name} is deprecated, use #{to} instead" constant(to) else super end end |
+ (Object) core
60 61 62 63 64 65 66 67 68 |
# File 'lib/ramaze.rb', line 60 def self.core roots, publics = [:roots], [:publics] joined = roots.map { |r| publics.map { |p| File.join(r, p) } } joined = joined.flatten.map { |p| Rack::File.new(p) } current = Current.new(Route.new(AppMap), Rewrite.new(AppMap)) return Rack::Cascade.new(joined << current, [404, 405]) end |
+ (Object) deprecated(from, to = nil)
8 9 10 11 12 13 |
# File 'lib/ramaze/snippets/ramaze/deprecated.rb', line 8 def self.deprecated(from, to = nil) = "%s is deprecated" << ", use %s instead" unless to.nil? << " - from: %p" Log.warn( % [from, to, caller[1]]) end |
+ (Object) to(object)
:nodoc:
8 9 10 11 |
# File 'lib/ramaze/app.rb', line 8 def self.to(object) app_name = object.ancestral_trait[:app] App[app_name].to(object) end |