Sha256: 227f419bc2d9329479f39b668e9e01968e24b429f5f516ceae673767c79b4a7b

Contents?: true

Size: 111 Bytes

Versions: 6

Compression:

Stored size: 111 Bytes

Contents

unless Struct.respond_to?(:keyword_init?)
  def Struct.keyword_init?
    new(1) && false rescue true
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
backports-3.25.0 lib/backports/3.1.0/struct/keyword_init.rb
backports-3.24.1 lib/backports/3.1.0/struct/keyword_init.rb
backports-3.24.0 lib/backports/3.1.0/struct/keyword_init.rb
backports-3.23.0 lib/backports/3.1.0/struct/keyword_init.rb
backports-3.22.1 lib/backports/3.1.0/struct/keyword_init.rb
backports-3.22.0 lib/backports/3.1.0/struct/keyword_init.rb