Module: RubyBox::Bindings

Extended by:
ActiveSupport::Concern
Included in:
Metal
Defined in:
lib/ruby_box/bindings.rb

Instance Method Summary collapse

Instance Method Details

#initializeObject



25
26
27
28
29
30
31
# File 'lib/ruby_box/bindings.rb', line 25

def initialize(*)
  super

  self.class.bindings.each do |target, proc|
    bind target, proc { |*args| instance_exec(*args, &proc) }
  end
end