lib/polites/convert.rb
# Convert the contents of `filename` to HTML and return the result as a String.
#
# @param [#to_s, #to_path] filename
# @return [String]
Convert the contents of `filename` to HTML and return the result as a String.
Convert the contents of ` filename ` to HTML and return the result as a String .
def call(filename)
      File.open(filename) do |f|
        f.content
         .then { |c| @parser.parse_sheet(c) }
         .then { |c| @formatter.call(c) }
      end
    end
def call ( filename ) File . open ( filename ) do | f | f . content . then { | c | @parser . parse_sheet ( c ) } . then { | c | @formatter . call ( c ) } end end
Convert the contents of `filename` to HTML and return the result as a String.
Convert the contents of ` filename ` to HTML and return the result as a String .
None
String
filename
<not_specific>
<not_specific>
None