Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo: Method#define_method -> Module#define_method #1085

Merged
merged 1 commit into from
Sep 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions core/module/define_method_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ def foo; end
end
end

describe "Method#define_method when passed a Method object" do
describe "Module#define_method when passed a Method object" do
before :each do
@klass = Class.new do
def m(a, b, *c)
Expand All @@ -749,7 +749,7 @@ def m(a, b, *c)
end
end

describe "Method#define_method when passed an UnboundMethod object" do
describe "Module#define_method when passed an UnboundMethod object" do
before :each do
@klass = Class.new do
def m(a, b, *c)
Expand All @@ -774,7 +774,7 @@ def m(a, b, *c)
end
end

describe "Method#define_method when passed a Proc object" do
describe "Module#define_method when passed a Proc object" do
describe "and a method is defined inside" do
it "defines the nested method in the default definee where the Proc was created" do
prc = nil
Expand All @@ -799,7 +799,7 @@ def nested_method_in_proc_for_define_method
end
end

describe "Method#define_method when passed a block" do
describe "Module#define_method when passed a block" do
describe "behaves exactly like a lambda" do
it "for return" do
Class.new do
Expand Down