StackOverflow Questions for Tag: instance-eval

Bo Yi
Bo Yi

Reputation: 143

How to temporarily redefine a method in Ruby?

Score: 2

Views: 1405

Answers: 2

Read More
stratis
stratis

Reputation: 8042

Passing around procs between different objects

Score: 1

Views: 133

Answers: 4

Read More
Rohan Pujari
Rohan Pujari

Reputation: 838

define_method inside instance_eval

Score: 2

Views: 1722

Answers: 3

Read More
Andy
Andy

Reputation: 300

Ruby refinements with instance_eval

Score: 4

Views: 378

Answers: 3

Read More
Alexey
Alexey

Reputation: 9447

class_eval vs instance_eval

Score: 7

Views: 1788

Answers: 2

Read More
Skiptomylu
Skiptomylu

Reputation: 1014

Ruby difference between send and instance_eval?

Score: 9

Views: 4501

Answers: 2

Read More
rohan kharvi
rohan kharvi

Reputation: 118

Why use 'instance_eval' instead of creating a method?

Score: 0

Views: 367

Answers: 2

Read More
user1282993
user1282993

Reputation:

Ruby DSL - invoking user-provided methods within block context

Score: 1

Views: 335

Answers: 2

Read More
bernstein7
bernstein7

Reputation: 111

Deep into Ruby class_eval and instance_eval

Score: 2

Views: 430

Answers: 1

Read More
Alan O'Donnell
Alan O'Donnell

Reputation: 1286

Ruby: how does constant-lookup work in instance_eval/class_eval?

Score: 3

Views: 1153

Answers: 2

Read More
luuchorocha
luuchorocha

Reputation: 99

How do I refactor code that uses `instance_exec` several times?

Score: 1

Views: 74

Answers: 2

Read More
boggy
boggy

Reputation: 302

Shortest code for getting all K-item combinations of N-item array, where K <= N

Score: 1

Views: 142

Answers: 4

Read More
Chad M
Chad M

Reputation: 1003

Ruby Block Scope with instance_eval

Score: 4

Views: 1286

Answers: 1

Read More
Markus O'Reilly
Markus O'Reilly

Reputation: 841

Ruby - Possible to pass a block as a param as an actual block to another function?

Score: 6

Views: 1879

Answers: 1

Read More
Arthur H
Arthur H

Reputation: 53

ruby access instance variable in instance_eval

Score: 3

Views: 2240

Answers: 2

Read More
Thermatix
Thermatix

Reputation: 2929

`instance_eval` and scopes

Score: 2

Views: 340

Answers: 2

Read More
Kranthi
Kranthi

Reputation: 1417

instance_eval's behaviour inside a instance method

Score: 1

Views: 37

Answers: 1

Read More
michelpm
michelpm

Reputation: 1845

How to pass a method to instance_eval?

Score: 1

Views: 384

Answers: 2

Read More
haroldcampbell
haroldcampbell

Reputation: 1542

Accessing Ruby Class Variables with class_eval and instance_eval

Score: 23

Views: 13860

Answers: 4

Read More
José P. Airosa
José P. Airosa

Reputation: 368

Instance_eval doesn't have access to class in module

Score: 0

Views: 257

Answers: 1

Read More
PreviousPage 1Next