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

#paintedObject

Returns the value of attribute painted

Returns:

  • (Object)

    the current value of painted



21
22
23
# File 'lib/graphiti/audit/report.rb', line 21

def painted
  @painted
end

#rawObject

Returns the value of attribute raw

Returns:

  • (Object)

    the current value of raw



21
22
23
# File 'lib/graphiti/audit/report.rb', line 21

def raw
  @raw
end

Instance Method Details

#pad_to(width) ⇒ Object



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

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