summaryrefslogtreecommitdiff
path: root/spec/ruby/core/proc/fixtures/proc_call.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/proc/fixtures/proc_call.rb')
-rw-r--r--spec/ruby/core/proc/fixtures/proc_call.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/ruby/core/proc/fixtures/proc_call.rb b/spec/ruby/core/proc/fixtures/proc_call.rb
new file mode 100644
index 0000000000..32048f5319
--- /dev/null
+++ b/spec/ruby/core/proc/fixtures/proc_call.rb
@@ -0,0 +1,10 @@
+# frozen_string_literal: false
+module ProcCallSpecs
+ def self.call
+ proc {|a| a }.call("sometext")
+ end
+
+ def self.call_freeze
+ proc {|a| a }.call("sometext".freeze)
+ end
+end