Class: Markbridge::Parsers::BBCode::RawContentResult
- Inherits:
-
Object
- Object
- Markbridge::Parsers::BBCode::RawContentResult
- Defined in:
- lib/markbridge/parsers/bbcode/raw_content_result.rb
Overview
Result object for raw content collection
Instance Attribute Summary collapse
-
#closed ⇒ Object
readonly
Returns the value of attribute closed.
-
#content ⇒ Object
readonly
Returns the value of attribute content.
Instance Method Summary collapse
- #closed? ⇒ Boolean
-
#initialize(content:, closed:) ⇒ RawContentResult
constructor
A new instance of RawContentResult.
- #unclosed? ⇒ Boolean
Constructor Details
#initialize(content:, closed:) ⇒ RawContentResult
Returns a new instance of RawContentResult.
10 11 12 13 |
# File 'lib/markbridge/parsers/bbcode/raw_content_result.rb', line 10 def initialize(content:, closed:) @content = content @closed = closed end |
Instance Attribute Details
#closed ⇒ Object (readonly)
Returns the value of attribute closed.
8 9 10 |
# File 'lib/markbridge/parsers/bbcode/raw_content_result.rb', line 8 def closed @closed end |
#content ⇒ Object (readonly)
Returns the value of attribute content.
8 9 10 |
# File 'lib/markbridge/parsers/bbcode/raw_content_result.rb', line 8 def content @content end |
Instance Method Details
#closed? ⇒ Boolean
15 16 17 |
# File 'lib/markbridge/parsers/bbcode/raw_content_result.rb', line 15 def closed? @closed end |
#unclosed? ⇒ Boolean
19 20 21 |
# File 'lib/markbridge/parsers/bbcode/raw_content_result.rb', line 19 def unclosed? !@closed end |