Class: Nanoc::DataSources::Filesystem::Parser::ParseResult Private

Inherits:
Object
  • Object
show all
Defined in:
lib/nanoc/data_sources/filesystem/parser.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(content:, attributes:, attributes_data:) ⇒ ParseResult

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of ParseResult.



13
14
15
16
17
# File 'lib/nanoc/data_sources/filesystem/parser.rb', line 13

def initialize(content:, attributes:, attributes_data:)
  @content = content
  @attributes = attributes
  @attributes_data = attributes_data
end

Instance Attribute Details

#attributesObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



10
11
12
# File 'lib/nanoc/data_sources/filesystem/parser.rb', line 10

def attributes
  @attributes
end

#attributes_dataObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



11
12
13
# File 'lib/nanoc/data_sources/filesystem/parser.rb', line 11

def attributes_data
  @attributes_data
end

#contentObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



9
10
11
# File 'lib/nanoc/data_sources/filesystem/parser.rb', line 9

def content
  @content
end