Class: Bridgetown::Routes::ViewHelpers::Flash

Inherits:
Hash
  • Object
show all
Defined in:
bridgetown-routes/lib/bridgetown-routes/view_helpers.rb

Overview

This flash is only used as a stub for views in case there’s no Roda flash available in the rendering context

Instance Method Summary collapse

Instance Method Details

#alertObject



17
18
19
# File 'bridgetown-routes/lib/bridgetown-routes/view_helpers.rb', line 17

def alert
  self["alert"]
end

#alert=(val) ⇒ Object



21
22
23
# File 'bridgetown-routes/lib/bridgetown-routes/view_helpers.rb', line 21

def alert=(val)
  self["alert"] = val
end

#infoObject



9
10
11
# File 'bridgetown-routes/lib/bridgetown-routes/view_helpers.rb', line 9

def info
  self["info"]
end

#info=(val) ⇒ Object



13
14
15
# File 'bridgetown-routes/lib/bridgetown-routes/view_helpers.rb', line 13

def info=(val)
  self["info"] = val
end

#nowObject



25
26
27
# File 'bridgetown-routes/lib/bridgetown-routes/view_helpers.rb', line 25

def now
  self
end