General

Profile

cichol (Renxiang Cai)

  • Email: cichol@live.cn
  • Registered on: 12/16/2015
  • Last connection: 10/29/2019

Issues

Activity

06/14/2019

01:15 PM Ruby master Feature #15799: pipeline operator
Hi,
I want to introduce a way to pipeline method calls in Ruby.
I imagined that the Ruby-styled pipelined calls...
cichol (Renxiang Cai)

06/01/2017

01:14 PM Ruby master Bug #13621 (Closed): String#split returns an array longer than given limit, when passing a regexp with groups
The String#split documentation(http://ruby-doc.org/core-2.4.1/String.html#method-i-split) described:
> If pattern ...
cichol (Renxiang Cai)

12/16/2015

03:29 PM Ruby master Bug #11826: After prepending a module, rewrite Hash#[] takes no effect for calls like Hash.new[:a]
~~~
module M
end
class Hash
prepend M
end
class Hash
def [](k)
p 3
end
def map
p 4
...
cichol (Renxiang Cai)
02:18 PM Ruby master Bug #11826 (Closed): After prepending a module, rewrite Hash#[] takes no effect for calls like Hash.new[:a]
~~~
module M
def self.prepended(clz)
clz.class_eval do
def [](k)
p 1
end
end
...
cichol (Renxiang Cai)

Also available in: Atom