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

mrubyを2.1.1に更新

File:
1 edited

Legend:

Unmodified
Added
Removed
  • EcnlProtoTool/trunk/mrbgems/mruby-iijson/mrblib/json.rb

    r331 r439  
    1717
    1818  def self.generate(obj, options=nil, state=nil)
    19     options = (options || {}).to_hash unless options.is_a? Hash
     19    options = (options || {}).to_h unless options.is_a? Hash
    2020    options[:pretty_print] ||= false
    2121    options[:indent_with] ||= 2
    22     state = (state || {}).to_hash unless state.is_a? Hash
     22    state = (state || {}).to_h unless state.is_a? Hash
    2323    state[:max_nesting] ||= 100
    2424    state[:nesting] = 0
Note: See TracChangeset for help on using the changeset viewer.