class Staker::HtmlResponse
Constants
- GEM_TITLE
- TEMPLATE_ONE
- TEMPLATE_TWO
Public Class Methods
new(response)
click to toggle source
# File lib/staker/stak_over_flow.rb, line 88 def initialize(response) html_body = TEMPLATE_ONE + response + TEMPLATE_TWO # TODO:: Create file inside tmp out_file = File.new("staker_out.html", "w") out_file.puts(html_body) out_file.close Launchy.open(Dir.pwd + "/staker_out.html") end
Public Instance Methods
method_name()
click to toggle source
# File lib/staker/stak_over_flow.rb, line 97 def method_name # html_body = TEMPLATE_ONE + final_ans.to_s + TEMPLATE_TWO # # TODO:: Create file inside tmp # out_file = File.new("staker_out.html", "w") # out_file.puts(html) # out_file.close # Launchy.open(Dir.pwd + "/staker_out.html") end