1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

extmk.rb: refactor

* ext/extmk.rb: extract non-blank part without intermediate
  objects.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2016-04-25 07:56:03 +00:00
parent a7dd094791
commit f4afd05260

View file

@ -627,7 +627,7 @@ void Init_ext(void)\n{\n#$extinit}
['SETUP', $setup],
['EXTLIBS', $extlibs.join(' ')], ['EXTLDFLAGS', $extflags]
].map {|n, v|
"#{n}=#{v}" if v and !(v = v.strip).empty?
"#{n}=#{v}" if v &&= v[/\S(?:.*\S)?/]
}.compact
puts(*conf)
$stdout.flush