@@ -2648,7 +2648,7 @@ def AddFont(family, style='', fontfile='', subset=nil)
2648
2648
family = 'helvetica';
2649
2649
end
2650
2650
if (family == "symbol") or (family == "zapfdingbats")
2651
- style = + ''
2651
+ style = ''
2652
2652
end
2653
2653
2654
2654
tempstyle = style.upcase
@@ -5695,7 +5695,7 @@ def destroy(destroyall=false, preserve_objcopy=false)
5695
5695
self.instance_variables.each { |val|
5696
5696
if destroyall or ((val != '@internal_encoding') and (val != '@state') and (val != '@bufferlen') and (val != '@buffer') and (val != '@diskcache') and (val != '@sign') and (val != '@signature_data') and (val != '@signature_max_length') and (val != '@byterange_string'))
5697
5697
if (!preserve_objcopy or (val.to_s != '@objcopy')) and !val.nil?
5698
- eval("#{ val} = nil" )
5698
+ instance_variable_set( val, nil)
5699
5699
end
5700
5700
end
5701
5701
}
@@ -12046,7 +12046,7 @@ def putshaders()
12046
12046
out = +'<<'
12047
12047
out << ' /FunctionType 3'
12048
12048
out << ' /Domain [0 1]'
12049
- functions = ''
12049
+ functions = + ''
12050
12050
i = 1
12051
12051
num_cols = grad['colors'].size
12052
12052
1.upto(num_cols - 1) do |i|
@@ -12522,7 +12522,6 @@ def isValidCSSSelectorForTag(dom, key, selector)
12522
12522
if dom[key]['attribute'] and dom[key]['attribute']['class'] and !dom[key]['attribute']['class'].empty?
12523
12523
selector_class = dom[key]['attribute']['class'].downcase
12524
12524
end
12525
- id = ''
12526
12525
if dom[key]['attribute'] and dom[key]['attribute']['id'] and !dom[key]['attribute']['id'].empty?
12527
12526
selector_id = dom[key]['attribute']['id'].downcase
12528
12527
end
@@ -12709,7 +12708,7 @@ def getHtmlDomArray(html)
12709
12708
uri.split('/').each {|path|
12710
12709
uri_path = uri_path.join(path)
12711
12710
}
12712
- cssdata = ''
12711
+ cssdata = + ''
12713
12712
next unless File.exist?(uri_path)
12714
12713
12715
12714
open(uri_path) do |f|
@@ -13080,7 +13079,7 @@ def getHtmlDomArray(html)
13080
13079
end
13081
13080
end
13082
13081
# font style
13083
- dom[key]['fontstyle'] ||= ""
13082
+ dom[key]['fontstyle'] ||= + ""
13084
13083
if !dom[key]['style']['font-weight'].nil? and (dom[key]['style']['font-weight'][0,1].downcase == 'b')
13085
13084
dom[key]['fontstyle'] << 'B'
13086
13085
end
@@ -13618,8 +13617,8 @@ def writeHTML(html, ln=true, fill=0, reseth=false, cell=false, align='')
13618
13617
# restore previous object
13619
13618
rollbackTransaction(true)
13620
13619
# restore previous values
13621
- this_method_vars.each {|vkey , vval|
13622
- eval("#{ vkey} = vval" )
13620
+ this_method_vars.each {|vkey, vval|
13621
+ binding.local_variable_set( vkey, vval)
13623
13622
}
13624
13623
# add a page (or trig AcceptPageBreak() for multicolumn mode)
13625
13624
pre_y = @y
@@ -14482,7 +14481,7 @@ def writeHTML(html, ln=true, fill=0, reseth=false, cell=false, align='')
14482
14481
rollbackTransaction(true)
14483
14482
# restore previous values
14484
14483
this_method_vars.each {|vkey , vval|
14485
- eval("#{ vkey} = vval" )
14484
+ binding.local_variable_set( vkey, vval)
14486
14485
}
14487
14486
# add a page (or trig AcceptPageBreak() for multicolumn mode)
14488
14487
pre_y = @y
@@ -16788,7 +16787,7 @@ def rollbackTransaction(this_self=false)
16788
16787
if this_self
16789
16788
objvars = @objcopy.instance_variables
16790
16789
objvars.each {|key|
16791
- eval("#{ key} = @objcopy.instance_variable_get(key)" ) if key.to_s != '@objcopy'
16790
+ instance_variable_set( key, @objcopy.instance_variable_get(key)) if key.to_s != '@objcopy'
16792
16791
}
16793
16792
end
16794
16793
return @objcopy
0 commit comments