Sha256: 9528384ebd22a7618f7ef0941f247f7acf128e250e908b5914e0f4899e1f1a59
Contents?: true
Size: 388 Bytes
Versions: 14
Compression:
Stored size: 388 Bytes
Contents
require 'opal' require 'user' require 'opal/platform' module MyApp class Application def initialize @user = User.new('Bob') end def title "#{@user.name} is #{:not unless @user.authenticated?} authenticated" end end end $app = MyApp::Application.new require 'native' $$[:document][:title] = "#{$app.title}" bill = User.new('Bill') bill.authenticated?
Version data entries
14 entries across 14 versions & 1 rubygems