Ignore:
Timestamp:
Jul 9, 2020, 8:51:43 AM (4 years ago)
Author:
coas-nagasima
Message:

mrubyを2.1.1に更新

Location:
EcnlProtoTool/trunk/mruby-2.1.1
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • EcnlProtoTool/trunk/mruby-2.1.1/mrbgems/mruby-proc-ext/mrblib/proc.rb

    r321 r439  
    2828    pproc = self
    2929    make_curry = proc do |given_args=[]|
    30       send(type) do |*args|
     30      __send__(type) do |*args|
    3131        new_args = given_args + args
    3232        if new_args.size >= arity
     
    4040  end
    4141
     42  def <<(other)
     43    ->(*args, &block) { call(other.call(*args, &block)) }
     44  end
     45
     46  def >>(other)
     47    ->(*args, &block) { other.call(call(*args, &block)) }
     48  end
     49
    4250end
Note: See TracChangeset for help on using the changeset viewer.