Class: TextExtractor::Directives::Directive
- Inherits:
-
Object
- Object
- TextExtractor::Directives::Directive
- Defined in:
- lib/text_extractor/directives/classes.rb
Overview
base class for line directives
Instance Attribute Summary collapse
-
#state ⇒ Object
readonly
Returns the value of attribute state.
Instance Method Summary collapse
-
#initialize(state, argument = nil) ⇒ Directive
constructor
A new instance of Directive.
- #values ⇒ Object
Constructor Details
#initialize(state, argument = nil) ⇒ Directive
Returns a new instance of Directive.
9 10 11 12 13 |
# File 'lib/text_extractor/directives/classes.rb', line 9 def initialize(state, argument = nil) @state = state @argument = argument init if respond_to?(:init) end |
Instance Attribute Details
#state ⇒ Object (readonly)
Returns the value of attribute state.
7 8 9 |
# File 'lib/text_extractor/directives/classes.rb', line 7 def state @state end |
Instance Method Details
#values ⇒ Object
15 16 17 |
# File 'lib/text_extractor/directives/classes.rb', line 15 def values [] end |