diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-12 08:38:11 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-12 08:38:11 +0000 |
commit | 8a72c77c7920d129818b7b83bb4fa669cd7e3f7d (patch) | |
tree | e88e17811fdb1059cc3a63199c297582780c8497 /tool/ruby_vm/models/c_expr.rb | |
parent | 069e9ff52cbb01fe2c5821a9b6a8077ab59c26c7 (diff) |
tool/ruby_vm support for pre-2.1 BASERUBY
as requested by devs, support for BASERUBY prior to 2.1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/ruby_vm/models/c_expr.rb')
-rw-r--r-- | tool/ruby_vm/models/c_expr.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tool/ruby_vm/models/c_expr.rb b/tool/ruby_vm/models/c_expr.rb index b19dd8bb48..923651a26b 100644 --- a/tool/ruby_vm/models/c_expr.rb +++ b/tool/ruby_vm/models/c_expr.rb @@ -17,10 +17,10 @@ class RubyVM::CExpr attr_reader :__FILE__, :__LINE__, :expr - def initialize location:, expr: - @__FILE__ = location[0] - @__LINE__ = location[1] - @expr = expr + def initialize opts = {} + @__FILE__ = opts[:location][0] + @__LINE__ = opts[:location][1] + @expr = opts[:expr] end # blank, in sense of C program. |