Sha256: 924722f097b1466ec18d0f8ad30dd2c5db45a288e4be237c84e9fcc3fc4a82fd

Contents?: true

Size: 351 Bytes

Versions: 8

Compression:

Stored size: 351 Bytes

Contents

module Bio
  class Graphics

class Primitive
  attr_reader :primitive
  
  def initialize(primitive,args)
    @primitive = primitive
    args.each_key do |k|
      self.instance_variable_set("@#{k}", args[k])
    end 
  end
  
  def update(args)
    args.each_key do |k|
      self.instance_variable_set("@#{k}", args[k])
    end
  end
  
end

end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
bio-svgenes-0.3.0 lib/bio/graphics/primitive.rb
bio-svgenes-0.2.3 lib/bio/graphics/primitive.rb
bio-svgenes-0.2.2 lib/bio/graphics/primitive.rb
bio-svgenes-0.2.1 lib/bio/graphics/primitive.rb
bio-svgenes-0.2.0 lib/bio/graphics/primitive.rb
bio-svgenes-0.1.4 lib/bio/graphics/primitive.rb
bio-svgenes-0.1.3 lib/bio/graphics/primitive.rb
bio-svgenes-0.1.2 lib/bio/graphics/primitive.rb