Method: Twb::CodedField#parseField

Defined in:
lib/twb/codedfield.rb

#parseField(str) ⇒ Object

initialize



57
58
59
60
61
62
63
64
65
66
67
# File 'lib/twb/codedfield.rb', line 57

def parseField str
  # puts "parseField: #{str}"
  parts = str.split(':')
  case parts.length
  when 1
    @name     = parts[0]
  else
    @name     = parts[-2]
    @function = parts[0]
  end
end