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