The Primitive class is used to hold information about Glyphs. They contain a Glyph type and then a Hash of parameters pertinent for that Glyph
Creates a new Primitive and initialises the Hash keys into instance variables
args
primitive = the Primitive type
args = a hash of parameters needed to initialise the given Glyph type
# File lib/bio/graphics/primitive.rb, line 12 def initialize(primitive,args) @primitive = primitive args.each_key do |k| self.instance_variable_set("@#{k}", args[k]) end end