Class: JsonLint::RakeTask

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = :jsonlint) {|_self| ... } ⇒ RakeTask

Returns a new instance of RakeTask.

Yields:

  • (_self)

Yield Parameters:



14
15
16
17
18
19
20
21
22
# File 'lib/jsonlint/rake_task.rb', line 14

def initialize(name = :jsonlint)
  @name = name
  @exclude_paths = []
  @fail_on_error = true

  yield self if block_given?

  define_task
end

Instance Attribute Details

#exclude_pathsObject

Returns the value of attribute exclude_paths.



10
11
12
# File 'lib/jsonlint/rake_task.rb', line 10

def exclude_paths
  @exclude_paths
end

#fail_on_errorObject

Returns the value of attribute fail_on_error.



11
12
13
# File 'lib/jsonlint/rake_task.rb', line 11

def fail_on_error
  @fail_on_error
end

#log_levelObject

Returns the value of attribute log_level.



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

def log_level
  @log_level
end

#nameObject

Returns the value of attribute name.



8
9
10
# File 'lib/jsonlint/rake_task.rb', line 8

def name
  @name
end

#pathsObject

Returns the value of attribute paths.



9
10
11
# File 'lib/jsonlint/rake_task.rb', line 9

def paths
  @paths
end