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-1.3.3 eitil_core/lib/eitil_core/argument_helpers/args_to_ivars.rb
eitil-1.3.2 eitil_core/lib/eitil_core/argument_helpers/args_to_ivars.rb
eitil-1.3.1 eitil_core/lib/eitil_core/argument_helpers/args_to_ivars.rb
eitil-1.3.0 eitil_core/lib/eitil_core/argument_helpers/args_to_ivars.rb
eitil-1.2.4 eitil_core/lib/eitil_core/argument_helpers/args_to_ivars.rb
eitil-1.2.3 eitil_core/lib/eitil_core/argument_helpers/args_to_ivars.rb
eitil-1.2.2 eitil_core/lib/eitil_core/argument_helpers/args_to_ivars.rb
eitil-1.2.1 eitil_core/lib/eitil_core/argument_helpers/args_to_ivars.rb
eitil-1.2.0 eitil_core/lib/eitil_core/argument_helpers/args_to_ivars.rb
eitil-1.1.39 eitil_core/lib/eitil_core/argument_helpers/args_to_ivars.rb
eitil-1.1.38 eitil_core/lib/eitil_core/argument_helpers/args_to_ivars.rb
eitil-1.1.37 eitil_core/lib/eitil_core/argument_helpers/args_to_ivars.rb
eitil-1.1.36 eitil_core/lib/eitil_core/argument_helpers/args_to_ivars.rb
eitil-1.1.35 eitil_core/lib/eitil_core/argument_helpers/args_to_ivars.rb
eitil-1.1.34 eitil_core/lib/eitil_core/argument_helpers/args_to_ivars.rb
eitil-1.1.33 eitil_core/lib/eitil_core/argument_helpers/args_to_ivars.rb
eitil-1.1.32 eitil_core/lib/eitil_core/argument_helpers/args_to_ivars.rb
eitil-1.1.31 eitil_core/lib/eitil_core/argument_helpers/args_to_ivars.rb
eitil-1.1.30 eitil_core/lib/eitil_core/argument_helpers/args_to_ivars.rb
eitil-1.1.29 eitil_core/lib/eitil_core/argument_helpers/args_to_ivars.rb