Sha256: 4a14f3f3cf50d02e0f8c77e2bd4b5eab46332cf298faeec4a9bb9bda529238ca
Contents?: true
Size: 607 Bytes
Versions: 1
Compression:
Stored size: 607 Bytes
Contents
module Powerpoint module Util def pixle_to_pt(px) px * 12700 end def render_view(filename) view_contents = read_template(filename) renderer = ERB.new(view_contents) renderer.result( binding ) end def read_template(filename) File.read(Powerpoint::ROOT_PATH + "/lib/powerpoint/views/#{filename}") end def require_arguments(required_argements, argements) raise ArgumentError unless required_argements.all? {|required_key| argements.keys.include? required_key} end def extract_path @presentation.extract_path end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
powerpoint-1.6 | lib/powerpoint/util.rb |