Class: LineType
- Inherits:
-
Object
- Object
- LineType
- Defined in:
- lib/LineType.rb
Direct Known Subclasses
ClassLineType, CommentLineType, ConstantLineType, VariableLineType
Instance Method Summary collapse
-
#initialize(strippedLine) ⇒ LineType
constructor
A new instance of LineType.
- #isValid ⇒ Object
Constructor Details
#initialize(strippedLine) ⇒ LineType
Returns a new instance of LineType.
4 5 6 |
# File 'lib/LineType.rb', line 4 def initialize (strippedLine) @strippedLine = strippedLine end |
Instance Method Details
#isValid ⇒ Object
8 9 10 |
# File 'lib/LineType.rb', line 8 def isValid !(s[-1] != ";") end |