diff options
Diffstat (limited to 'spec/ruby/core/proc/fixtures/proc_aref.rb')
-rw-r--r-- | spec/ruby/core/proc/fixtures/proc_aref.rb | 9 |
1 files changed, 9 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..a305667797 --- /dev/null +++ b/spec/ruby/core/proc/fixtures/proc_aref.rb @@ -0,0 +1,9 @@ +module ProcArefSpecs + def self.aref + proc {|a| a }["sometext"] + end + + def self.aref_freeze + proc {|a| a }["sometext".freeze] + end +end |