Class: Perron::Resource::Separator
- Inherits:
-
Object
- Object
- Perron::Resource::Separator
- Defined in:
- lib/perron/resource/separator.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
Instance Method Summary collapse
- #frontmatter ⇒ Object
-
#initialize(content) ⇒ Separator
constructor
A new instance of Separator.
Constructor Details
#initialize(content) ⇒ Separator
Returns a new instance of Separator.
8 9 10 |
# File 'lib/perron/resource/separator.rb', line 8 def initialize(content) parsed(content) end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
6 7 8 |
# File 'lib/perron/resource/separator.rb', line 6 def content @content end |
Instance Method Details
#frontmatter ⇒ Object
12 13 14 15 16 |
# File 'lib/perron/resource/separator.rb', line 12 def frontmatter @frontmatter_with_dot_access ||= ActiveSupport::OrderedOptions.new.tap do || @frontmatter.each { |key, value| [key] = value } end end |