Class: WhyClasses::Runner::FileReport

Inherits:
Data
  • Object
show all
Defined in:
lib/why_classes/runner.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#appliedObject (readonly)

Returns the value of attribute applied

Returns:

  • (Object)

    the current value of applied



20
21
22
# File 'lib/why_classes/runner.rb', line 20

def applied
  @applied
end

#corrected_sourceObject (readonly)

Returns the value of attribute corrected_source

Returns:

  • (Object)

    the current value of corrected_source



20
21
22
# File 'lib/why_classes/runner.rb', line 20

def corrected_source
  @corrected_source
end

#offensesObject (readonly)

Returns the value of attribute offenses

Returns:

  • (Object)

    the current value of offenses



20
21
22
# File 'lib/why_classes/runner.rb', line 20

def offenses
  @offenses
end

#original_sourceObject (readonly)

Returns the value of attribute original_source

Returns:

  • (Object)

    the current value of original_source



20
21
22
# File 'lib/why_classes/runner.rb', line 20

def original_source
  @original_source
end

#pathObject (readonly)

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



20
21
22
# File 'lib/why_classes/runner.rb', line 20

def path
  @path
end

Instance Method Details

#changed?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/why_classes/runner.rb', line 21

def changed?
  corrected_source != original_source
end