Table of Contents - context-pattern-1.1.1 Documentation
Pages
- LICENSE
-
README
- Context pattern
- What is the context pattern?
- Setting up the gem
- Simple example
- Basic components of using the gem
- The above is functionaly equivalent to the code below:
- def foo
- FooDecorator.new(@parent_context.foo, bar: bar, baz: baz)
- end
- memoize :foo
- Best practices for usage
- How to test context objects
Classes and Modules
- Context
- Context::BaseContext
- Context::BaseContextHelper
- Context::Controller
- Context::MethodOverrideError
- Context::Railtie
Methods
- ::decorate — Context::BaseContext
- ::has_view_helper? — Context::BaseContext
- ::included — Context::Controller
- ::is_decorated? — Context::BaseContext
- ::new — Context::MethodOverrideError
- ::new — Context::BaseContext
- ::view_helpers — Context::BaseContext
- ::wrap — Context::BaseContext
- #__set_base_context — Context::Controller
- #context_class_chain — Context::BaseContext
- #context_method_mapping — Context::BaseContext
- #extend_context — Context::Controller
- #get_context_method_mapping — Context::BaseContext
- #has_view_helper? — Context::BaseContext
- #message — Context::MethodOverrideError
- #method_missing — Context::BaseContext
- #method_missing — Context::BaseContextHelper
- #method_missing — Context::Controller
- #respond_to_missing? — Context::BaseContext
- #respond_to_missing? — Context::BaseContextHelper
- #respond_to_missing? — Context::Controller
- #whereis — Context::BaseContext