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-1.1.8 eitil_core/lib/eitil_core/argument_helpers/all_args_to_ivars.rb
eitil-1.1.7 eitil_core/lib/eitil_core/argument_helpers/all_args_to_ivars.rb
eitil-1.1.6 eitil_core/lib/eitil_core/argument_helpers/all_args_to_ivars.rb
eitil-1.1.5 eitil_core/lib/eitil_core/argument_helpers/all_args_to_ivars.rb
eitil-1.1.4 eitil_core/lib/eitil_core/argument_helpers/all_args_to_ivars.rb
eitil-1.1.3 eitil_core/lib/eitil_core/argument_helpers/all_args_to_ivars.rb
eitil-1.1.2 eitil_core/lib/eitil_core/argument_helpers/all_args_to_ivars.rb
eitil-1.1.1 eitil_core/lib/eitil_core/argument_helpers/all_args_to_ivars.rb
eitil-1.1.0 eitil_core/lib/eitil_core/argument_helpers/all_args_to_ivars.rb
eitil-1.0.4 eitil_core/lib/eitil_core/argument_helpers/all_args_to_ivars.rb
eitil-1.0.3 eitil_core/lib/eitil_core/argument_helpers/all_args_to_ivars.rb
eitil-1.0.3.e.1 eitil_core/lib/eitil_core/argument_helpers/all_args_to_ivars.rb
eitil-1.0.2 eitil_core/lib/eitil_core/argument_helpers/all_args_to_ivars.rb
eitil-1.0.1 eitil_core/lib/eitil_core/argument_helpers/all_args_to_ivars.rb
eitil-1.0.1.e.4 eitil_core/lib/eitil_core/argument_helpers/all_args_to_ivars.rb
eitil-1.0.1.e.3 eitil_core/lib/eitil_core/argument_helpers/all_args_to_ivars.rb