Method: LineDeterminator#lineType
- Defined in:
- lib/LineDeterminator.rb
#lineType ⇒ Object
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/LineDeterminator.rb', line 28 def lineType if isComment return CommentLineType.new(@strippedLine) end if isVar return VariableLineType.new(@strippedLine) end if isLet return ConstantLineType.new(@strippedLine) end if isClass return ClassLineType.new(@strippedLine) end return LineType.new(@strippedLine) end |