Class: TextExtractor::Directives::End

Inherits:
Directive
  • Object
show all
Defined in:
lib/text_extractor/directives/classes.rb

Overview

close a line group

Instance Attribute Summary

Attributes inherited from Directive

#state

Instance Method Summary collapse

Methods inherited from Directive

#initialize, #values

Constructor Details

This class inherits a constructor from TextExtractor::Directives::Directive

Instance Method Details

#callObject



69
70
71
# File 'lib/text_extractor/directives/classes.rb', line 69

def call
  state.current = state.groups.pop.finish(state.newline?)
end