Class: Raml::Parser::Documentation
- Inherits:
-
Object
- Object
- Raml::Parser::Documentation
- Includes:
- Util
- Defined in:
- lib/raml/parser/documentation.rb
Constant Summary collapse
- BASIC_ATTRIBUTES =
%w[title content]
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#documentation ⇒ Object
Returns the value of attribute documentation.
Instance Method Summary collapse
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
11 12 13 |
# File 'lib/raml/parser/documentation.rb', line 11 def attributes @attributes end |
#documentation ⇒ Object
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 |