Module: ParamsReady::Parameter::DelegatingDefinition

Defined in:
lib/params_ready/parameter/definition.rb

Class Method Summary collapse

Class Method Details

.[](delegee_name) ⇒ Object



263
264
265
266
267
268
269
# File 'lib/params_ready/parameter/definition.rb', line 263

def self.[](delegee_name)
  mod = Module.new
  Extensions::Delegation.delegate(mod) do
    instance_variable_get(:"@#{delegee_name}")
  end
  mod
end