class CTioga2::MetaBuilder::Types::MarkerType
A marker Type
for Tioga. Input as
a,(,b(,c)?)?
Public Instance Methods
string_to_type_internal(str)
click to toggle source
# File lib/ctioga2/metabuilder/types/styles.rb, line 130 def string_to_type_internal(str) specs = str.split(/\s*,\s*/) if specs.size == 2 return [specs[0].to_i, specs[1].to_i] elsif specs.size == 3 return [specs[0].to_i, specs[1].to_i, specs[2].to_f] elsif specs.size == 1 # Defaults to symbols ! return [14, specs[0].to_i] else raise IncorrectInput, "You need between one and three values to make a marker" end end