Class: Datarockets::Style::Formatter::TodoListFormatter::ReportSummary::FileGroup

Inherits:
Struct
  • Object
show all
Defined in:
lib/datarockets/style/formatter/todo_list_formatter/report_summary.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#fileObject

Returns the value of attribute file

Returns:

  • (Object)

    the current value of file



16
17
18
# File 'lib/datarockets/style/formatter/todo_list_formatter/report_summary.rb', line 16

def file
  @file
end

#offenses_countObject

Returns the value of attribute offenses_count

Returns:

  • (Object)

    the current value of offenses_count



16
17
18
# File 'lib/datarockets/style/formatter/todo_list_formatter/report_summary.rb', line 16

def offenses_count
  @offenses_count
end

Instance Method Details



17
18
19
# File 'lib/datarockets/style/formatter/todo_list_formatter/report_summary.rb', line 17

def print(output)
  output.puts "    - '#{file}' # #{offenses_count}"
end