Sha256: 8252b7e9b04ce8d5535a81bc9c6636b0251a81853b6f81f678a0ef5b55653ce3

Contents?: true

Size: 237 Bytes

Versions: 4

Compression:

Stored size: 237 Bytes

Contents

module QuakeliveApi
  module Items
    module Structurable

      def initialize(*args)
        opts = args.last.is_a?(Hash) ? args.pop : {}
        super(*args)
        opts.each { |k, v| send("#{k}=", v) }
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
quakelive_api-0.1.2 lib/quakelive_api/items/structurable.rb
quakelive_api-0.1.1 lib/quakelive_api/items/structurable.rb
quakelive_api-0.1.0 lib/quakelive_api/items/structurable.rb
quakelive_api-0.0.1 lib/quakelive_api/items/structurable.rb