Class: SimpleFacade::Base
- Inherits:
-
Object
- Object
- SimpleFacade::Base
- Includes:
- Mixin
- Defined in:
- lib/simple_facade.rb
Instance Attribute Summary collapse
-
#__subjects__ ⇒ Object
readonly
Returns the value of attribute __subjects__.
Instance Method Summary collapse
-
#initialize(*attrs, **options) ⇒ Base
constructor
A new instance of Base.
Methods included from Mixin
#facade_delete, #facade_dequeue, #facade_enqueue, #facade_insert, #facade_pop, #facade_push, #facade_reverse, #method_missing, #respond_to_missing?
Constructor Details
#initialize(*attrs, **options) ⇒ Base
Returns a new instance of Base.
80 81 82 83 84 |
# File 'lib/simple_facade.rb', line 80 def initialize(*attrs, **) @__subjects__ = [] @__subjects__ += attrs.select {|el| el.is_a?(Array) && el.size == 2} @__subjects__ += .to_a end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class SimpleFacade::Mixin
Instance Attribute Details
#__subjects__ ⇒ Object (readonly)
Returns the value of attribute __subjects__.
86 87 88 |
# File 'lib/simple_facade.rb', line 86 def __subjects__ @__subjects__ end |