Class: HelloSession

Inherits:
Tofu::Session show all
Defined in:
lib/tofu.rb

Instance Attribute Summary collapse

Attributes inherited from Tofu::Session

#hint, #session_id

Instance Method Summary collapse

Methods inherited from Tofu::Session

#dispatch_event, #do_GET, #do_inner_html, #entry, #expired?, #expires, #fetch, #hint_expires, #renew, #service

Constructor Details

#initialize(bartender, hint = nil) ⇒ HelloSession

Returns a new instance of HelloSession.



667
668
669
670
671
# File 'lib/tofu.rb', line 667

def initialize(bartender, hint=nil)
  super
  @base = BaseTofu.new(self)
  @text = ''
end

Instance Attribute Details

#textObject

Returns the value of attribute text.



672
673
674
# File 'lib/tofu.rb', line 672

def text
  @text
end

Instance Method Details

#lookup_view(context) ⇒ Object



674
675
676
# File 'lib/tofu.rb', line 674

def lookup_view(context)
  @base
end