Class: WB::Rails3Tutorial

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/rails3-tutorial.rb

Instance Method Summary collapse

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