Class: Junebug::Models::Page

Inherits:
Base
  • Object
show all
Defined in:
lib/junebug/models.rb

Defined Under Namespace

Classes: Version

Constant Summary collapse

/\[\[([^\]|]*)[|]?([^\]]*)\]\]/

Instance Method Summary collapse

Instance Method Details

#title=(text) ⇒ Object



38
39
40
# File 'lib/junebug/models.rb', line 38

def title=(text)
  write_attribute(:title, text ? text.strip.squeeze(' ') : text)
end