Class: Chawan::Analyzers::AbstractAnalyzer
- Inherits:
-
Object
- Object
- Chawan::Analyzers::AbstractAnalyzer
- Defined in:
- lib/chawan/analyzers/abstract_analyzer.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ AbstractAnalyzer
constructor
A new instance of AbstractAnalyzer.
- #parse(text) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ AbstractAnalyzer
Returns a new instance of AbstractAnalyzer.
6 7 8 |
# File 'lib/chawan/analyzers/abstract_analyzer.rb', line 6 def initialize( = {}) @options = .dup.freeze end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/chawan/analyzers/abstract_analyzer.rb', line 4 def @options end |
Instance Method Details
#parse(text) ⇒ Object
10 11 12 |
# File 'lib/chawan/analyzers/abstract_analyzer.rb', line 10 def parse(text) raise NotImplementedError, "#{self.class}#parse should be implemented" end |