diff options
Diffstat (limited to 'spec/ruby/core/proc/fixtures/proc_aref.rb')
| -rw-r--r-- | spec/ruby/core/proc/fixtures/proc_aref.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/ruby/core/proc/fixtures/proc_aref.rb b/spec/ruby/core/proc/fixtures/proc_aref.rb new file mode 100644 index 0000000000..8ee355b14c --- /dev/null +++ b/spec/ruby/core/proc/fixtures/proc_aref.rb @@ -0,0 +1,10 @@ +# frozen_string_literal: false +module ProcArefSpecs + def self.aref + proc {|a| a }["sometext"] + end + + def self.aref_freeze + proc {|a| a }["sometext".freeze] + end +end |
