Sha256: 2e5710a98aab39520fc4b6d823e5e5b1a77007ee8a35a8e583e8ae1607497aec

Contents?: true

Size: 313 Bytes

Versions: 1

Compression:

Stored size: 313 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bio-svgenes-0.1.1 lib/bio/graphics/primitive.rb