General

Profile

mudasobwa (Alexei Matyushkin)

  • Login: mudasobwa
  • Email: am@mudasobwa.ru
  • Registered on: 07/25/2014
  • Last sign in: 09/14/2016

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 2 2

Activity

11/22/2016

10:07 AM Ruby Feature #12968: Allow default value via block for Integer(), Float() and Rational()
Stefan Schüßler wrote:
> ```ruby
> ...
To make it possible to fallback to e.g. `#to_i` it would be great to receive an actual argument as block parameter:
```ruby
# ⇓⇓⇓⇓⇓
Integer('foo') { |val| val.to_i }
```
mudasobwa (Alexei Matyushkin)

09/14/2016

11:36 AM Ruby Bug #12761 (Closed): Ruby 2.3.1 has a bug in `Module#alias` and `Module#alias_method`
Consider the following code:

~~~ ruby
module M
def original ; puts __callee__ ; end
alias_method :aliased, :original
end
class A
include M
end
A.new.original
#⇒ original
A....
mudasobwa (Alexei Matyushkin)

07/25/2014

10:55 AM Ruby Bug #10092 (Rejected): singleton_method behaves inconsistent with singleton_methods on modules, extending self
Let’s consider the following code:
~~~ruby
module M
extend self
def m_i
puts "m_i"
end
def m
puts "include? = [#{singleton_methods.include?(:m_i)}]"
puts "call = [#{singleton_method(:m_i).call}]" rescue p...
mudasobwa (Alexei Matyushkin)

Also available in: Atom