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/mrblib/range.rb

    r331 r439  
    1111  # ISO 15.2.14.4.4
    1212  def each(&block)
    13     return to_enum :each unless block_given?
     13    return to_enum :each unless block
    1414
    1515    val = self.first
     
    2727    end
    2828
    29     if val.kind_of?(String) && last.kind_of?(String) # fixnums are special
     29    if val.kind_of?(String) && last.kind_of?(String) # strings are special
    3030      if val.respond_to? :upto
    3131        return val.upto(last, exclude_end?, &block)
Note: See TracChangeset for help on using the changeset viewer.