Class: DatarocketsStyle::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



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

def file
  @file
end

#offenses_countObject

Returns the value of attribute offenses_count

Returns:

  • (Object)

    the current value of offenses_count



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

def offenses_count
  @offenses_count
end

Instance Method Details



18
19
20
# File 'lib/datarockets_style/formatter/todo_list_formatter/report_summary.rb', line 18

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