Class: JsonLint::RakeTask
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- JsonLint::RakeTask
- Defined in:
- lib/jsonlint/rake_task.rb
Instance Attribute Summary collapse
-
#exclude_paths ⇒ Object
Returns the value of attribute exclude_paths.
-
#fail_on_error ⇒ Object
Returns the value of attribute fail_on_error.
-
#log_level ⇒ Object
Returns the value of attribute log_level.
-
#name ⇒ Object
Returns the value of attribute name.
-
#paths ⇒ Object
Returns the value of attribute paths.
Instance Method Summary collapse
-
#initialize(name = :jsonlint) {|_self| ... } ⇒ RakeTask
constructor
A new instance of RakeTask.
Constructor Details
#initialize(name = :jsonlint) {|_self| ... } ⇒ RakeTask
Returns a new instance of RakeTask.
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_paths ⇒ Object
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_error ⇒ Object
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_level ⇒ Object
Returns the value of attribute log_level.
12 13 14 |
# File 'lib/jsonlint/rake_task.rb', line 12 def log_level @log_level end |
#name ⇒ Object
Returns the value of attribute name.
8 9 10 |
# File 'lib/jsonlint/rake_task.rb', line 8 def name @name end |
#paths ⇒ Object
Returns the value of attribute paths.
9 10 11 |
# File 'lib/jsonlint/rake_task.rb', line 9 def paths @paths end |