Module: Whiteprint::Explanation

Defined in:
lib/whiteprint/explanation.rb

Class Method Summary collapse

Class Method Details

.apply(whiteprint, index, width: 100) ⇒ Object



4
5
6
7
8
9
# File 'lib/whiteprint/explanation.rb', line 4

def apply(whiteprint, index, width: 100)
  @table     = { title: "#{index}. ", rows: [], style: { width: width } }
  @whiteprint = whiteprint
  transformer.new.apply(whiteprint.changes_tree)
  @table
end