Module: Surrounded
- Included in:
- Context::Negotiator
- Defined in:
- lib/surrounded.rb,
lib/surrounded/context.rb,
lib/surrounded/version.rb,
lib/surrounded/shortcuts.rb,
lib/surrounded/east_oriented.rb,
lib/surrounded/access_control.rb,
lib/surrounded/context_errors.rb,
lib/surrounded/context/role_map.rb,
lib/surrounded/context/forwarding.rb,
lib/surrounded/context/negotiator.rb,
lib/surrounded/context/initializing.rb,
lib/surrounded/context/role_builders.rb,
lib/surrounded/context/trigger_controls.rb,
lib/surrounded/context/name_collision_detector.rb
Overview
Extend your classes with Surrounded::Context to handle their initialization and application of behaviors to the role players passed into the constructor.
The purpose of this module is to help you create context objects which encapsulate the interaction and behavior of objects inside.
Defined Under Namespace
Modules: AccessControl, Context, EastOriented, Shortcuts Classes: NullContext
Constant Summary collapse
- VERSION =
"0.9.10"
Class Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth, *args, &block) ⇒ Object (private)
35 36 37 |
# File 'lib/surrounded.rb', line 35 def method_missing(meth, *args, &block) context.role?(meth){} || super end |
Class Method Details
.version ⇒ Object
4 5 6 |
# File 'lib/surrounded/version.rb', line 4 def self.version VERSION end |