Class: Graphiti::Audit::Report::Cell

Inherits:
Struct
  • Object
show all
Defined in:
lib/graphiti/audit/report.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#painted ⇒ Object

Returns the value of attribute painted

Returns:

  • (Object) —

    the current value of painted



23
24
25
# File 'lib/graphiti/audit/report.rb', line 23

def painted
  @painted
end

#raw ⇒ Object

Returns the value of attribute raw

Returns:

  • (Object) —

    the current value of raw



23
24
25
# File 'lib/graphiti/audit/report.rb', line 23

def raw
  @raw
end

Instance Method Details

#pad_to(width) ⇒ Object



24
25
26
# File 'lib/graphiti/audit/report.rb', line 24

def pad_to(width)
  painted + " " * (width - raw.length)
end