Class: Rasti::Web::ApiDoc::Task

Inherits:
Rake::TaskLib
  • Object
show all
Defined in:
lib/rasti/web/api_doc/task.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = :doc) {|_self| ... } ⇒ Task

Returns a new instance of Task.

Yields:

  • (_self)

Yield Parameters:



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

#appObject

Returns the value of attribute app.



7
8
9
# File 'lib/rasti/web/api_doc/task.rb', line 7

def app
  @app
end

#envObject

Returns the value of attribute env.



7
8
9
# File 'lib/rasti/web/api_doc/task.rb', line 7

def env
  @env
end

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/rasti/web/api_doc/task.rb', line 6

def name
  @name
end

#outputObject

Returns the value of attribute output.



7
8
9
# File 'lib/rasti/web/api_doc/task.rb', line 7

def output
  @output
end

#pathObject

Returns the value of attribute path.



7
8
9
# File 'lib/rasti/web/api_doc/task.rb', line 7

def path
  @path
end

#patternObject

Returns the value of attribute pattern.



7
8
9
# File 'lib/rasti/web/api_doc/task.rb', line 7

def pattern
  @pattern
end