Class: WB::Rails3Tutorial
- Inherits:
-
Sinatra::Base
- Object
- Sinatra::Base
- WB::Rails3Tutorial
- Defined in:
- lib/rails3-tutorial.rb
Instance Method Summary collapse
-
#title(name = nil) ⇒ Object
helper methods attr_accessor :title.
Instance Method Details
#title(name = nil) ⇒ Object
helper methods attr_accessor :title
46 47 48 49 50 51 |
# File 'lib/rails3-tutorial.rb', line 46 def title(name=nil) @title = "WB/Rails3" if name @title += " | " + name.to_s end end |