Sha256: 18b4984ac40e4477a910cf8c1c521bae92702a4172bd10da732baba8bcdd2a13

Contents?: true

Size: 141 Bytes

Versions: 11

Compression:

Stored size: 141 Bytes

Contents

require 'ostruct'

# Backport of 2.0.0 stdlib ostruct#to_h
class OpenStruct
  def to_h
    @table.dup
  end unless method_defined? :to_h
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rack-tracker-0.2.4 lib/rack/tracker/extensions.rb
rack-tracker-0.2.3 lib/rack/tracker/extensions.rb
rack-tracker-0.2.2 lib/rack/tracker/extensions.rb
rack-tracker-0.2.1 lib/rack/tracker/extensions.rb
rack-tracker-0.2.0 lib/rack/tracker/extensions.rb
rack-tracker-0.1.3 lib/rack/tracker/extensions.rb
rack-tracker-0.1.1 lib/rack/tracker/extensions.rb
rack-tracker-0.1.0 lib/rack/tracker/extensions.rb
rack-tracker-0.0.4 lib/rack/tracker/extensions.rb
rack-tracker-0.0.3 lib/rack/tracker/extensions.rb
rack-tracker-0.0.2 lib/rack/tracker/extensions.rb