Sha256: b9afff55f0d0227be78d9fb7b05d30f1b28ea0fe95bad8fc1fbd1cb4ebdd2b03

Contents?: true

Size: 224 Bytes

Versions: 72

Compression:

Stored size: 224 Bytes

Contents

module Timber
  module Util
    # @private
    module Struct
      extend self

      def to_hash(struct)
        h = {}
        struct.each_pair do |k ,v|
          h[k] = v
        end
        h
      end
    end
  end
end

Version data entries

72 entries across 72 versions & 1 rubygems

Version Path
timber-2.0.17 lib/timber/util/struct.rb
timber-2.0.16 lib/timber/util/struct.rb
timber-2.0.15 lib/timber/util/struct.rb
timber-2.0.14 lib/timber/util/struct.rb
timber-2.0.12 lib/timber/util/struct.rb
timber-2.0.11 lib/timber/util/struct.rb
timber-2.0.10 lib/timber/util/struct.rb
timber-2.0.9 lib/timber/util/struct.rb
timber-2.0.8 lib/timber/util/struct.rb
timber-2.0.7 lib/timber/util/struct.rb
timber-2.0.6 lib/timber/util/struct.rb
timber-2.0.5 lib/timber/util/struct.rb
timber-2.0.4 lib/timber/util/struct.rb
timber-2.0.3 lib/timber/util/struct.rb
timber-2.0.2 lib/timber/util/struct.rb
timber-2.0.1 lib/timber/util/struct.rb
timber-2.0.0 lib/timber/util/struct.rb
timber-1.1.14 lib/timber/util/struct.rb
timber-1.1.13 lib/timber/util/struct.rb
timber-1.1.12 lib/timber/util/struct.rb