Class: Table2PNG::Converter

Inherits:
Struct
  • Object
show all
Defined in:
lib/table2png/converter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#htmlObject

Returns the value of attribute html

Returns:

  • (Object)

    the current value of html



6
7
8
# File 'lib/table2png/converter.rb', line 6

def html
  @html
end

#new_widthObject

Returns the value of attribute new_width

Returns:

  • (Object)

    the current value of new_width



6
7
8
# File 'lib/table2png/converter.rb', line 6

def new_width
  @new_width
end

Instance Method Details

#heightObject



16
17
18
# File 'lib/table2png/converter.rb', line 16

def height
  png.height
end

#processObject



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

#widthObject



12
13
14
# File 'lib/table2png/converter.rb', line 12

def width
  png.width
end