Sha256: deaa4f89826c555606f3206f4588dc2e22b04d0548c671a52e7f74cb6cc22d9c
Contents?: true
Size: 338 Bytes
Versions: 1
Compression:
Stored size: 338 Bytes
Contents
module Scarpe class Para def initialize(app, text) @app = app @text = text @app.append(render) end def render "<p id=#{object_id}>#{@text}</p>" end def replace(text) @text = text @app.window.eval("document.getElementById(#{object_id}).innerText = \"#{text}\"") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
scarpe-0.1.0 | lib/scarpe/para.rb |