Comments (4)
This should fix it.
Please review and accept if fine.
--- a/lib/pry-sorbet/commands/unwrap_command.rb
+++ b/lib/pry-sorbet/commands/unwrap_command.rb
@@ -30,7 +30,11 @@ module PrySorbet
signatures_by_method.values.each do |signature|
T::Configuration.without_ruby_warnings do
T::Private::DeclState.current.without_on_method_added do
- signature.owner.send(:define_method, signature.method_name, signature.method)
+ if signature.mode == T::Private::Methods::Modes.abstract
+ signature.owner.send(:remove_method, signature.method_name)
+ else
+ signature.owner.send(:define_method, signature.method_name, signature.method)
+ end
end
end
end
from pry-sorbet.
@md-work thanks for pointing this out and recommending a patch for it. the patch looks fine to me, would you like to create a PR for it?
from pry-sorbet.
would you like to create a PR for it?
Please just use my patch without a PR.
(I'm quite busy at the moment and I would have to register an SSH key first)
from pry-sorbet.
It seems this issue was closed when the PR mentioned above was merged.
from pry-sorbet.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pry-sorbet.