Class: Dox::Formatter::CurrentExample
- Inherits:
-
Object
- Object
- Dox::Formatter::CurrentExample
- Extended by:
- Forwardable
- Defined in:
- lib/dox/formatter.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#example ⇒ Object
readonly
Returns the value of attribute example.
Instance Method Summary collapse
- #action_name ⇒ Object
- #document? ⇒ Boolean
-
#initialize(example) ⇒ CurrentExample
constructor
A new instance of CurrentExample.
- #request ⇒ Object
- #resource_group_desc ⇒ Object
- #resource_group_name ⇒ Object
- #resource_name ⇒ Object
- #response ⇒ Object
Constructor Details
#initialize(example) ⇒ CurrentExample
Returns a new instance of CurrentExample.
81 82 83 |
# File 'lib/dox/formatter.rb', line 81 def initialize(example) @example = example end |
Instance Attribute Details
#example ⇒ Object (readonly)
Returns the value of attribute example.
79 80 81 |
# File 'lib/dox/formatter.rb', line 79 def example @example end |
Instance Method Details
#action_name ⇒ Object
97 98 99 |
# File 'lib/dox/formatter.rb', line 97 def action_name [:action_name] end |
#document? ⇒ Boolean
109 110 111 |
# File 'lib/dox/formatter.rb', line 109 def document? tagged_with?(:apidoc) && tagged_with?(:dox) && !tagged_with?(:nodoc) end |
#request ⇒ Object
101 102 103 |
# File 'lib/dox/formatter.rb', line 101 def request [:request] end |
#resource_group_desc ⇒ Object
89 90 91 |
# File 'lib/dox/formatter.rb', line 89 def resource_group_desc [:resource_group_desc] end |
#resource_group_name ⇒ Object
85 86 87 |
# File 'lib/dox/formatter.rb', line 85 def resource_group_name [:resource_group_name] end |
#resource_name ⇒ Object
93 94 95 |
# File 'lib/dox/formatter.rb', line 93 def resource_name [:resource_name] end |
#response ⇒ Object
105 106 107 |
# File 'lib/dox/formatter.rb', line 105 def response [:response] end |