Class: Sitepress::Parsers::Base
- Inherits:
-
Object
- Object
- Sitepress::Parsers::Base
- Defined in:
- lib/sitepress/parsers/base.rb
Overview
Parses nothing. The body is returned and the data is blank.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(source) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(source) ⇒ Base
Returns a new instance of Base.
9 10 11 12 |
# File 'lib/sitepress/parsers/base.rb', line 9 def initialize(source) @body = source @data = {} end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
7 8 9 |
# File 'lib/sitepress/parsers/base.rb', line 7 def body @body end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
7 8 9 |
# File 'lib/sitepress/parsers/base.rb', line 7 def data @data end |