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



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

def html
  @html
end

#new_widthObject

Returns the value of attribute new_width

Returns:

  • (Object)

    the current value of new_width



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

def new_width
  @new_width
end

Instance Method Details

#heightObject



21
22
23
# File 'lib/table2png/converter.rb', line 21

def height
  png.height
end

#processObject



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

#widthObject



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

def width
  png.width
end