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.6.2 lib/timber/util/struct.rb
timber-2.6.1 lib/timber/util/struct.rb
timber-2.6.0 lib/timber/util/struct.rb
timber-2.6.0.pre.beta2 lib/timber/util/struct.rb
timber-2.6.0.pre.beta1 lib/timber/util/struct.rb
timber-2.5.1 lib/timber/util/struct.rb
timber-2.5.0 lib/timber/util/struct.rb
timber-2.4.0 lib/timber/util/struct.rb
timber-2.3.4 lib/timber/util/struct.rb
timber-2.3.3 lib/timber/util/struct.rb
timber-2.3.2 lib/timber/util/struct.rb
timber-2.3.1 lib/timber/util/struct.rb
timber-2.3.0 lib/timber/util/struct.rb
timber-2.2.3 lib/timber/util/struct.rb
timber-2.2.2 lib/timber/util/struct.rb
timber-2.2.1 lib/timber/util/struct.rb
timber-2.2.0 lib/timber/util/struct.rb
timber-2.1.10 lib/timber/util/struct.rb
timber-2.1.9 lib/timber/util/struct.rb
timber-2.1.8 lib/timber/util/struct.rb