Class: Flexr::RakeTask

Inherits:
Object
  • Object
show all
Defined in:
lib/flexr/rake_task.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of RakeTask.

Yields:

  • (_self)

Yield Parameters:



11
12
13
14
15
16
# File 'lib/flexr/rake_task.rb', line 11

def initialize(name = :flexr)
  @name = name
  @warn_as_error = false
  yield self if block_given?
  define_task
end

Instance Attribute Details

#outputObject

Returns the value of attribute output.



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

def output
  @output
end

#specObject

Returns the value of attribute spec.



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

def spec
  @spec
end

#warn_as_errorObject

Returns the value of attribute warn_as_error.



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

def warn_as_error
  @warn_as_error
end