Sha256: bbba7245270295545fec8599ecf68cd0487f0395763a4120e4d65d3d8385b9b2

Contents?: true

Size: 255 Bytes

Versions: 76

Compression:

Stored size: 255 Bytes

Contents

# require "eitil_core/argument_helpers/args_to_ivars"

Kernel.module_eval do

  def args_to_ivars(local_binding, *local_vars)
    local_vars.each do |lvar|
      instance_variable_set("@#{lvar}", local_binding.local_variable_get(lvar))
    end
  end

end

Version data entries

76 entries across 76 versions & 1 rubygems

Version Path
eitil-2.0.8 eitil_core/lib/eitil_core/argument_helpers/args_to_ivars.rb
eitil-2.0.7 eitil_core/lib/eitil_core/argument_helpers/args_to_ivars.rb
eitil-2.0.6 eitil_core/lib/eitil_core/argument_helpers/args_to_ivars.rb
eitil-2.0.5 eitil_core/lib/eitil_core/argument_helpers/args_to_ivars.rb
eitil-2.0.4 eitil_core/lib/eitil_core/argument_helpers/args_to_ivars.rb
eitil-2.0.3 eitil_core/lib/eitil_core/argument_helpers/args_to_ivars.rb
eitil-2.0.2 eitil_core/lib/eitil_core/argument_helpers/args_to_ivars.rb
eitil-2.0.1 eitil_core/lib/eitil_core/argument_helpers/args_to_ivars.rb
eitil-2.0.0 eitil_core/lib/eitil_core/argument_helpers/args_to_ivars.rb
eitil-1.4.1 eitil_core/lib/eitil_core/argument_helpers/args_to_ivars.rb
eitil-1.4.0 eitil_core/lib/eitil_core/argument_helpers/args_to_ivars.rb
eitil-1.3.12 eitil_core/lib/eitil_core/argument_helpers/args_to_ivars.rb
eitil-1.3.11 eitil_core/lib/eitil_core/argument_helpers/args_to_ivars.rb
eitil-1.3.10 eitil_core/lib/eitil_core/argument_helpers/args_to_ivars.rb
eitil-1.3.9 eitil_core/lib/eitil_core/argument_helpers/args_to_ivars.rb
eitil-1.3.8 eitil_core/lib/eitil_core/argument_helpers/args_to_ivars.rb
eitil-1.3.7 eitil_core/lib/eitil_core/argument_helpers/args_to_ivars.rb
eitil-1.3.6 eitil_core/lib/eitil_core/argument_helpers/args_to_ivars.rb
eitil-1.3.5 eitil_core/lib/eitil_core/argument_helpers/args_to_ivars.rb
eitil-1.3.4 eitil_core/lib/eitil_core/argument_helpers/args_to_ivars.rb