Class: Languages::Ruby::EndBlockRuby
- Defined in:
- lib/kuniri/language/ruby/end_block_ruby.rb
Overview
Class responsible for handling Ruby end of block.
Instance Method Summary collapse
- #detect_end(pLine) ⇒ Object protected
-
#has_end_of_block?(pLine) ⇒ Boolean
Verify Ruby end of block.
Instance Method Details
#detect_end(pLine) ⇒ Object (protected)
20 21 22 23 24 |
# File 'lib/kuniri/language/ruby/end_block_ruby.rb', line 20 def detect_end(pLine) #TODO: EXTREMELY SIMPLE HANDLING, IT HAVE TO BE IMPROVED! return true if pLine =~ /^\s+end|^end|\send;?$/ return false end |
#has_end_of_block?(pLine) ⇒ Boolean
Verify Ruby end of block.
14 15 16 |
# File 'lib/kuniri/language/ruby/end_block_ruby.rb', line 14 def has_end_of_block?(pLine) return detect_end(pLine) end |