Class: Lab42::CheckedClass::Proxy
- Inherits:
-
Object
- Object
- Lab42::CheckedClass::Proxy
- Defined in:
- lib/lab42/checked_class/proxy.rb
Constant Summary collapse
- Fn =
ExAequo::Base::Fn
- None =
Object.new.freeze
Instance Attribute Summary collapse
-
#klass ⇒ Object
readonly
Returns the value of attribute klass.
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *a, **k, &b) ⇒ Object (private)
78 79 80 |
# File 'lib/lab42/checked_class/proxy.rb', line 78 def method_missing(name, *a, **k, &b) attr(name, *a, **k, &b) end |
Instance Attribute Details
#klass ⇒ Object (readonly)
Returns the value of attribute klass.
16 17 18 |
# File 'lib/lab42/checked_class/proxy.rb', line 16 def klass @klass end |
Instance Method Details
#_define_class ⇒ Object
18 19 20 21 22 23 24 25 26 |
# File 'lib/lab42/checked_class/proxy.rb', line 18 def _define_class Injector.new( attributes: _attributes, constraint_checker: ConstraintChecker.new(_constraints), defaults: _defaults, init: @init, klass:) .inject end |