Class: WB::SPTutorial

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

Instance Method Summary collapse

Instance Method Details

#page_titleObject

helper methods attr_reader :title



45
46
47
# File 'lib/sp-tutorial.rb', line 45

def page_title
  @title || ""
end

#title(name) ⇒ Object

def title=(name)… does not work, bug?



50
51
52
# File 'lib/sp-tutorial.rb', line 50

def title(name)
  @title = " | #{name}"
end