Class: RealPage::AttributeParser::Base
- Inherits:
-
Object
- Object
- RealPage::AttributeParser::Base
- Defined in:
- lib/real_page/attribute_parser/base.rb
Overview
Base class for attribute parsers.
Instance Method Summary collapse
-
#initialize(value) ⇒ Base
constructor
A new instance of Base.
-
#parse ⇒ Object
The parsed attribute value.
Constructor Details
#initialize(value) ⇒ Base
Returns a new instance of Base.
6 7 8 |
# File 'lib/real_page/attribute_parser/base.rb', line 6 def initialize(value) @value = value end |
Instance Method Details
#parse ⇒ Object
Returns the parsed attribute value.
11 12 13 14 |
# File 'lib/real_page/attribute_parser/base.rb', line 11 def parse raise NotImplementedError, "#{self.class.name} must implement #{__method__}" end |