Class: Table2PNG::Converter
- Inherits:
-
Struct
- Object
- Struct
- Table2PNG::Converter
- Defined in:
- lib/table2png/converter.rb
Instance Attribute Summary collapse
-
#html ⇒ Object
Returns the value of attribute html.
-
#new_width ⇒ Object
Returns the value of attribute new_width.
Instance Method Summary collapse
Instance Attribute Details
#html ⇒ Object
Returns the value of attribute html
6 7 8 |
# File 'lib/table2png/converter.rb', line 6 def html @html end |
#new_width ⇒ Object
Returns the value of attribute new_width
6 7 8 |
# File 'lib/table2png/converter.rb', line 6 def new_width @new_width end |
Instance Method Details
#height ⇒ Object
16 17 18 |
# File 'lib/table2png/converter.rb', line 16 def height png.height end |
#process ⇒ Object
20 21 22 |
# File 'lib/table2png/converter.rb', line 20 def process png.trim! end |
#save(path) ⇒ Object
7 8 9 10 |
# File 'lib/table2png/converter.rb', line 7 def save path process png.save path end |
#width ⇒ Object
12 13 14 |
# File 'lib/table2png/converter.rb', line 12 def width png.width end |