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.1.7 lib/timber/util/struct.rb
timber-2.1.6 lib/timber/util/struct.rb
timber-2.1.5 lib/timber/util/struct.rb
timber-2.1.4 lib/timber/util/struct.rb
timber-2.1.3 lib/timber/util/struct.rb
timber-2.1.2 lib/timber/util/struct.rb
timber-2.1.1 lib/timber/util/struct.rb
timber-2.1.0 lib/timber/util/struct.rb
timber-2.1.0.rc6 lib/timber/util/struct.rb
timber-2.1.0.rc5 lib/timber/util/struct.rb
timber-2.1.0.rc4 lib/timber/util/struct.rb
timber-2.1.0.rc3 lib/timber/util/struct.rb
timber-2.1.0.rc2 lib/timber/util/struct.rb
timber-2.1.0.rc1 lib/timber/util/struct.rb
timber-2.0.24 lib/timber/util/struct.rb
timber-2.0.23 lib/timber/util/struct.rb
timber-2.0.22 lib/timber/util/struct.rb
timber-2.0.21 lib/timber/util/struct.rb
timber-2.0.20 lib/timber/util/struct.rb
timber-2.0.19 lib/timber/util/struct.rb