Class: Languages::EndBlock Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/kuniri/language/abstract_container/structured_and_oo/end_block.rb

Overview

This class is abstract.

Class responsible for handling end block of each language.

Direct Known Subclasses

Ruby::EndBlockRuby

Instance Method Summary collapse

Instance Method Details

#detect_end(pLine) ⇒ Object (protected)

Keeps some operation for find line.

Parameters:

  • pLine

    Line with potential end of block.

Raises:

  • (NotImplementedError)


19
20
21
# File 'lib/kuniri/language/abstract_container/structured_and_oo/end_block.rb', line 19

def detect_end(pLine)
  raise NotImplementedError
end

#has_end_of_block?(pLine) ⇒ Boolean

Verify if line has an end of line token.

Parameters:

  • pLine

    Line to inspect.

Returns:

  • (Boolean)

    Return true if find an end block, otherwise return false.

Raises:

  • (NotImplementedError)


11
12
13
# File 'lib/kuniri/language/abstract_container/structured_and_oo/end_block.rb', line 11

def has_end_of_block?(pLine)
  raise NotImplementedError
end