banister (john mair)
- Login: banister
- Email: [email protected]
- Registered on: 09/24/2010
- Last sign in: 10/25/2012
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 4 | 4 |
Activity
08/09/2013
-
08:16 PM Ruby Feature #8751: Add offsets to method#source_location
- We can already do a fairly reliable method extraction in Pry, we simply start reading from the first line of the method definition until we get a complete expression, there are a few situations where this breaks but in 90% of cases (in m...
02/15/2013
-
06:05 AM Ruby Feature #7836: Need a way to get Method and UnboundMethod objects to methods overridden by prepended modules
- @ marcandre. Another possible approach is to provide `UnboundMethod#super`. We do something similar in our Method wrapper for Pry: https://github.com/pry/pry/blob/master/lib/pry/method.rb#L394-L402
While we're at it, other useful meth...
02/13/2013
-
02:40 AM Ruby Feature #7836 (Closed): Need a way to get Method and UnboundMethod objects to methods overridden by prepended modules
- See the following code:
~~~ruby
module P
def hello
puts "from P"
super
end
end
class A
def hello
puts 'from A'
end
prepend P
end
A.instance_method(:hello).source_location == P.instance_method(:...
10/28/2012
-
10:59 PM Ruby Bug #7214: Ruby 2.0 breaks support for some debugging tools
- No problem, our current code skips CFUNC frames too :)
Are you thinking of exposing this API to Ruby (in core or stdlib) or just as a C API ? -
09:08 PM Ruby Bug #7214: Ruby 2.0 breaks support for some debugging tools
- The API is this:
class methods
--
# return the binding for the nth caller, where Binding.of_caller(0) == binding
Binding.of_caller(n)
# return an array of all the caller bindings (this is useful when you want to take a snap-shot of t... -
05:14 AM Ruby Bug #7214: Ruby 2.0 breaks support for some debugging tools
- @ko1
Unfortunately I can't make it to rubconf2012.
What we need for Ruby 2.0 is the `binding_of_caller` gem working (https://github.com/banister/binding_of_caller/blob/ruby-2.0/ext/binding_of_caller/binding_of_caller.c ). We need to g...
10/25/2012
-
07:46 PM Ruby Bug #7214 (Third Party's Issue): Ruby 2.0 breaks support for some debugging tools
- Notably the "Pry" debugger breaks, and (though i haven't checked) I'm assuming the 'debugger' project as well. The reason for the breakages (as far as i can see) is that the `rb_vm_make_env_object` function is now hidden. In the comments...
11/30/2010
-
12:46 PM Ruby Feature #4102 (Rejected): Proposal for 'let'. A new approach using block-defaults in 1.9
- =begin
This is a very simple function, it would be implemented as follows:
module Kernel
private
def let() yield end
end
First of all, do not dismiss this functionality out of hand because of
its ...
11/15/2010
-
03:38 PM Ruby Bug #4058 (Closed): __method__ does not return correct method name for aliased methods
- =begin
class Test
def my_method
__method__
end
alias_method :my_alias, :my_method
end
Hello.new.my_method #=> :my_method
Hello.new.my_alias #=> :my_method
I think that `Hello.new.my_alias` should inst...