Sha256: 80fcc0d090ff2a674f02da88ae69bed208eaf472d9f7eeb3ac88d2680503388b

Contents?: true

Size: 269 Bytes

Versions: 76

Compression:

Stored size: 269 Bytes

Contents

# require "eitil_core/argument_helpers/all_args_to_ivars"

Kernel.module_eval do

  def all_args_to_ivars(local_binding)
    local_binding.local_variables.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/all_args_to_ivars.rb
eitil-2.0.7 eitil_core/lib/eitil_core/argument_helpers/all_args_to_ivars.rb
eitil-2.0.6 eitil_core/lib/eitil_core/argument_helpers/all_args_to_ivars.rb
eitil-2.0.5 eitil_core/lib/eitil_core/argument_helpers/all_args_to_ivars.rb
eitil-2.0.4 eitil_core/lib/eitil_core/argument_helpers/all_args_to_ivars.rb
eitil-2.0.3 eitil_core/lib/eitil_core/argument_helpers/all_args_to_ivars.rb
eitil-2.0.2 eitil_core/lib/eitil_core/argument_helpers/all_args_to_ivars.rb
eitil-2.0.1 eitil_core/lib/eitil_core/argument_helpers/all_args_to_ivars.rb
eitil-2.0.0 eitil_core/lib/eitil_core/argument_helpers/all_args_to_ivars.rb
eitil-1.4.1 eitil_core/lib/eitil_core/argument_helpers/all_args_to_ivars.rb
eitil-1.4.0 eitil_core/lib/eitil_core/argument_helpers/all_args_to_ivars.rb
eitil-1.3.12 eitil_core/lib/eitil_core/argument_helpers/all_args_to_ivars.rb
eitil-1.3.11 eitil_core/lib/eitil_core/argument_helpers/all_args_to_ivars.rb
eitil-1.3.10 eitil_core/lib/eitil_core/argument_helpers/all_args_to_ivars.rb
eitil-1.3.9 eitil_core/lib/eitil_core/argument_helpers/all_args_to_ivars.rb
eitil-1.3.8 eitil_core/lib/eitil_core/argument_helpers/all_args_to_ivars.rb
eitil-1.3.7 eitil_core/lib/eitil_core/argument_helpers/all_args_to_ivars.rb
eitil-1.3.6 eitil_core/lib/eitil_core/argument_helpers/all_args_to_ivars.rb
eitil-1.3.5 eitil_core/lib/eitil_core/argument_helpers/all_args_to_ivars.rb
eitil-1.3.4 eitil_core/lib/eitil_core/argument_helpers/all_args_to_ivars.rb