Class: ClassLineType
Constant Summary collapse
- CLASS_REGEX =
/class[" "]([a-zA-Z])\w+((: (([a-zA-Z])\w+))((, (([a-zA-Z])\w+)){0,10}))? {/
Instance Method Summary collapse
Methods inherited from LineType
Constructor Details
This class inherits a constructor from LineType
Instance Method Details
#isValid ⇒ Object
55 56 57 |
# File 'lib/LineType.rb', line 55 def isValid !!(@strippedLine =~ CLASS_REGEX) end |