class Remindar

dRuby class method.

Public Class Methods

new(remindar) click to toggle source
# File lib/druby_erb.rb, line 12
def initialize(remindar)
  @remindar = remindar
  @erb = ERB.new(erb_src)
end

Public Instance Methods

erb_src() click to toggle source
# File lib/druby_erb.rb, line 17
  def erb_src
    <<~SRC
      <html>
      <head>時刻表示</head>
      <body>
      <p><%= Time.new.strftime('%Y年%m月%d日 %H時%M分%S秒') %><p>
      </body>
      </html>
    SRC
  end
to_html() click to toggle source
# File lib/druby_erb.rb, line 28
def to_html
  @erb.result(binding)
end