Class: MotionBlender::Interpreters::Base
- Inherits:
-
Object
- Object
- MotionBlender::Interpreters::Base
- Defined in:
- lib/motion_blender/interpreters/base.rb
Direct Known Subclasses
Class Attribute Summary collapse
-
.method ⇒ Object
readonly
Returns the value of attribute method.
-
.receiver ⇒ Object
readonly
Returns the value of attribute receiver.
Instance Attribute Summary collapse
-
#collector ⇒ Object
readonly
Returns the value of attribute collector.
-
#object ⇒ Object
Returns the value of attribute object.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(collector) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(collector) ⇒ Base
Returns a new instance of Base.
30 31 32 |
# File 'lib/motion_blender/interpreters/base.rb', line 30 def initialize collector @collector = collector end |
Class Attribute Details
.method ⇒ Object (readonly)
Returns the value of attribute method.
7 8 9 |
# File 'lib/motion_blender/interpreters/base.rb', line 7 def method @method end |
.receiver ⇒ Object (readonly)
Returns the value of attribute receiver.
7 8 9 |
# File 'lib/motion_blender/interpreters/base.rb', line 7 def receiver @receiver end |
Instance Attribute Details
#collector ⇒ Object (readonly)
Returns the value of attribute collector.
24 25 26 |
# File 'lib/motion_blender/interpreters/base.rb', line 24 def collector @collector end |
#object ⇒ Object
Returns the value of attribute object.
25 26 27 |
# File 'lib/motion_blender/interpreters/base.rb', line 25 def object @object end |
Class Method Details
.interprets(method, options = {}) ⇒ Object
9 10 11 12 13 |
# File 'lib/motion_blender/interpreters/base.rb', line 9 def interprets method, = {} @method = method @receiver = [:receiver] || Object Collector.register self end |
.key ⇒ Object
15 16 17 |
# File 'lib/motion_blender/interpreters/base.rb', line 15 def key [@receiver, @method] end |
.requirable?(_) ⇒ Boolean
19 20 21 |
# File 'lib/motion_blender/interpreters/base.rb', line 19 def requirable? _ false end |