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
11 12 13 |
# File 'lib/table2png/converter.rb', line 11 def html @html end |
#new_width ⇒ Object
Returns the value of attribute new_width
11 12 13 |
# File 'lib/table2png/converter.rb', line 11 def new_width @new_width end |
Instance Method Details
#height ⇒ Object
21 22 23 |
# File 'lib/table2png/converter.rb', line 21 def height png.height end |
#process ⇒ Object
25 26 27 |
# File 'lib/table2png/converter.rb', line 25 def process png.trim! end |
#save(path) ⇒ Object
12 13 14 15 |
# File 'lib/table2png/converter.rb', line 12 def save path process png.save path end |
#width ⇒ Object
17 18 19 |
# File 'lib/table2png/converter.rb', line 17 def width png.width end |