Class: GemChanges::SummaryTable::Row
- Inherits:
-
Object
- Object
- GemChanges::SummaryTable::Row
- Defined in:
- lib/gem_changes/summary_table.rb
Instance Attribute Summary collapse
-
#change ⇒ Object
readonly
Returns the value of attribute change.
-
#gem ⇒ Object
readonly
Returns the value of attribute gem.
Instance Method Summary collapse
-
#initialize(change:) ⇒ Row
constructor
A new instance of Row.
- #markdown ⇒ Object
Constructor Details
#initialize(change:) ⇒ Row
Returns a new instance of Row.
27 28 29 30 |
# File 'lib/gem_changes/summary_table.rb', line 27 def initialize(change:) @change = change @gem = change.gem end |
Instance Attribute Details
#change ⇒ Object (readonly)
Returns the value of attribute change.
25 26 27 |
# File 'lib/gem_changes/summary_table.rb', line 25 def change @change end |
#gem ⇒ Object (readonly)
Returns the value of attribute gem.
25 26 27 |
# File 'lib/gem_changes/summary_table.rb', line 25 def gem @gem end |
Instance Method Details
#markdown ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/gem_changes/summary_table.rb', line 32 def markdown string = "| " string += [ rubygems_link, source_link, changelog_link, change_description, compare_link, level ].join(" | ") string += " |\n" string end |