Class: Raml::Parser::Documentation

Inherits:
Object
  • Object
show all
Includes:
Util
Defined in:
lib/raml/parser/documentation.rb

Constant Summary collapse

BASIC_ATTRIBUTES =
%w[title content]

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#attributesObject

Returns the value of attribute attributes.



11
12
13
# File 'lib/raml/parser/documentation.rb', line 11

def attributes
  @attributes
end

#documentationObject

Returns the value of attribute documentation.



11
12
13
# File 'lib/raml/parser/documentation.rb', line 11

def documentation
  @documentation
end

Instance Method Details

#parse(attributes) ⇒ Object



13
14
15
16
17
18
19
20
# File 'lib/raml/parser/documentation.rb', line 13

def parse(attributes)
  @documentation = Raml::Documentation.new
  @attributes = prepare_attributes(attributes)

  parse_attributes

  documentation
end