Source

lqpl / GUI / src / panels / quantum_stack / descriptor / value_descriptor_model.rb

Full commit


class ValueDescriptorModel < AbstractDescriptorModel

  PATTERN=Regexp.new /^<Value>(<number>)?(.*?)(<\/number>)?<\/Value>$/

  def initialize(in_string)
    matc = PATTERN.match in_string
    raise ModelCreateError, in_string if ! matc
    @value = matc[2]
    @name = nil
  end

  def length
    0
  end

end