Project

General

Profile

Actions

Refactor #6498

closed

simplified eval calls

Added by Ohad Levy over 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
trivial
Triaged:
Fixed in Releases:
Found in Releases:

Description

in a few places we have code like
eval("self.#{k}= v") if self.respond_to?("#{k}=")

changing it to
self.send("#{k}=",v) if self.respond_to?("#{k}=")

Actions

Also available in: Atom PDF