Class: Raml::Parser::Method
- Inherits:
-
Object
- Object
- Raml::Parser::Method
- Extended by:
- Forwardable
- Includes:
- Util
- Defined in:
- lib/raml/parser/method.rb
Constant Summary collapse
- BASIC_ATTRIBUTES =
%w[display_name description headers]
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#method ⇒ Object
Returns the value of attribute method.
-
#parent ⇒ Object
Returns the value of attribute parent.
Instance Method Summary collapse
-
#initialize(parent) ⇒ Method
constructor
A new instance of Method.
- #parse(the_method, attributes) ⇒ Object
Constructor Details
#initialize(parent) ⇒ Method
Returns a new instance of Method.
21 22 23 |
# File 'lib/raml/parser/method.rb', line 21 def initialize(parent) @parent = parent end |
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
18 19 20 |
# File 'lib/raml/parser/method.rb', line 18 def attributes @attributes end |
#method ⇒ Object
Returns the value of attribute method.
18 19 20 |
# File 'lib/raml/parser/method.rb', line 18 def method @method end |
#parent ⇒ Object
Returns the value of attribute parent.
18 19 20 |
# File 'lib/raml/parser/method.rb', line 18 def parent @parent end |