Class: SimpleFacade::Base

Inherits:
Object
  • Object
show all
Includes:
Mixin
Defined in:
lib/simple_facade.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, **options)
  @__subjects__ = []
  @__subjects__ += attrs.select {|el| el.is_a?(Array) && el.size == 2}
  @__subjects__ += options.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