Sha256: 36893af9e9e4c38ec68c74c1971102e11bd42b7a22b4126038fd1c151162ba5b

Contents?: true

Size: 206 Bytes

Versions: 9

Compression:

Stored size: 206 Bytes

Contents

# frozen-string-literal: true

module Bioshogi
  module SimpleModel
    def initialize(attributes)
      attributes.each do |k, v|
        public_send("#{k}=", v)
      end

      super()
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
bioshogi-0.0.15 lib/bioshogi/simple_model.rb
bioshogi-0.0.14 lib/bioshogi/simple_model.rb
bioshogi-0.0.10 lib/bioshogi/simple_model.rb
bioshogi-0.0.9 lib/bioshogi/simple_model.rb
bioshogi-0.0.8 lib/bioshogi/simple_model.rb
bioshogi-0.0.7 lib/bioshogi/simple_model.rb
bioshogi-0.0.5 lib/bioshogi/simple_model.rb
bioshogi-0.0.4 lib/bioshogi/simple_model.rb
bioshogi-0.0.3 lib/bioshogi/simple_model.rb