summaryrefslogtreecommitdiff
path: root/spec/ruby/core/proc/fixtures/proc_call_frozen.rb
blob: 29ffc3c4c95a9cb61d0df07acbb3a59bdb454f2e (plain)
1
2
3
4
5
6
7
8
9
10
# frozen_string_literal: true
module ProcCallFrozenSpecs
  def self.call
    proc {|a| a }.call("sometext")
  end

  def self.call_freeze
    proc {|a| a }.call("sometext".freeze)
  end
end