Class: RspecApiDocs::RakeTask

Inherits:
Rake::TaskLib
  • Object
show all
Defined in:
lib/rspec_api_docs/rake_task.rb

Defined Under Namespace

Modules: RSpecMatchers

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, &block) ⇒ RakeTask


20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/rspec_api_docs/rake_task.rb', line 20

def initialize(name = nil, &block)
  @name = name
  @verbose = true
  @pattern = 'spec/requests/**/*_spec.rb'
  @rspec_opts = []
  @existing_file = 'docs/index.json'
  @verify = false

  block.call(self) if block

  define
end

Instance Attribute Details

#dirObject

Returns the value of attribute dir


12
13
14
# File 'lib/rspec_api_docs/rake_task.rb', line 12

def dir
  @dir
end

#existing_fileObject

Returns the value of attribute existing_file


12
13
14
# File 'lib/rspec_api_docs/rake_task.rb', line 12

def existing_file
  @existing_file
end

#patternObject

Returns the value of attribute pattern


12
13
14
# File 'lib/rspec_api_docs/rake_task.rb', line 12

def pattern
  @pattern
end

#rspec_optsObject

Returns the value of attribute rspec_opts


12
13
14
# File 'lib/rspec_api_docs/rake_task.rb', line 12

def rspec_opts
  @rspec_opts
end

#verboseObject

Returns the value of attribute verbose


12
13
14
# File 'lib/rspec_api_docs/rake_task.rb', line 12

def verbose
  @verbose
end

#verifyObject

Returns the value of attribute verify


12
13
14
# File 'lib/rspec_api_docs/rake_task.rb', line 12

def verify
  @verify
end