Class: Rasti::Web::ApiDoc::Task
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- Rasti::Web::ApiDoc::Task
- Defined in:
- lib/rasti/web/api_doc/task.rb
Instance Attribute Summary collapse
-
#app ⇒ Object
Returns the value of attribute app.
-
#env ⇒ Object
Returns the value of attribute env.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#output ⇒ Object
Returns the value of attribute output.
-
#path ⇒ Object
Returns the value of attribute path.
-
#pattern ⇒ Object
Returns the value of attribute pattern.
Instance Method Summary collapse
-
#initialize(name = :doc) {|_self| ... } ⇒ Task
constructor
A new instance of Task.
Constructor Details
#initialize(name = :doc) {|_self| ... } ⇒ Task
Returns a new instance of Task.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/rasti/web/api_doc/task.rb', line 9 def initialize(name=:doc) @name = name @output = 'API.md' @pattern = 'spec/**/*_spec.rb' @path = 'spec' yield self if block_given? build_task end |
Instance Attribute Details
#app ⇒ Object
Returns the value of attribute app.
7 8 9 |
# File 'lib/rasti/web/api_doc/task.rb', line 7 def app @app end |
#env ⇒ Object
Returns the value of attribute env.
7 8 9 |
# File 'lib/rasti/web/api_doc/task.rb', line 7 def env @env end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/rasti/web/api_doc/task.rb', line 6 def name @name end |
#output ⇒ Object
Returns the value of attribute output.
7 8 9 |
# File 'lib/rasti/web/api_doc/task.rb', line 7 def output @output end |
#path ⇒ Object
Returns the value of attribute path.
7 8 9 |
# File 'lib/rasti/web/api_doc/task.rb', line 7 def path @path end |
#pattern ⇒ Object
Returns the value of attribute pattern.
7 8 9 |
# File 'lib/rasti/web/api_doc/task.rb', line 7 def pattern @pattern end |