Class: Dox::Formatter::CurrentExample

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/dox/formatter.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(example) ⇒ CurrentExample

Returns a new instance of CurrentExample.



82
83
84
# File 'lib/dox/formatter.rb', line 82

def initialize(example)
  @example = example
end

Instance Attribute Details

#exampleObject (readonly)

Returns the value of attribute example.



80
81
82
# File 'lib/dox/formatter.rb', line 80

def example
  @example
end

Instance Method Details

#action_nameObject



98
99
100
# File 'lib/dox/formatter.rb', line 98

def action_name
  [:action_name]
end

#document?Boolean

Returns:

  • (Boolean)


110
111
112
# File 'lib/dox/formatter.rb', line 110

def document?
  tagged_with?(:apidoc) && tagged_with?(:dox) && !tagged_with?(:nodoc)
end

#requestObject



102
103
104
# File 'lib/dox/formatter.rb', line 102

def request
  [:request]
end

#resource_group_descObject



90
91
92
# File 'lib/dox/formatter.rb', line 90

def resource_group_desc
  [:resource_group_desc]
end

#resource_group_nameObject



86
87
88
# File 'lib/dox/formatter.rb', line 86

def resource_group_name
  [:resource_group_name]
end

#resource_nameObject



94
95
96
# File 'lib/dox/formatter.rb', line 94

def resource_name
  [:resource_name]
end

#responseObject



106
107
108
# File 'lib/dox/formatter.rb', line 106

def response
  [:response]
end