Class: NoticeSys::CssView
- Inherits:
-
Object
- Object
- NoticeSys::CssView
- Defined in:
- lib/noticesys.rb
Instance Method Summary collapse
-
#initialize(weblet_file) ⇒ CssView
constructor
A new instance of CssView.
- #notice_css ⇒ Object
- #noticelist_css ⇒ Object
Constructor Details
#initialize(weblet_file) ⇒ CssView
Returns a new instance of CssView.
298 299 300 301 302 |
# File 'lib/noticesys.rb', line 298 def initialize(weblet_file) @weblet_file = weblet_file end |
Instance Method Details
#notice_css ⇒ Object
319 320 321 322 323 324 325 326 327 328 |
# File 'lib/noticesys.rb', line 319 def notice_css() w = Weblet.new(@weblet_file) lines = [] lines << w.render(:status) lines << w.render(:cards) lines.join("\n") end |
#noticelist_css ⇒ Object
304 305 306 307 308 309 310 311 312 313 314 315 316 317 |
# File 'lib/noticesys.rb', line 304 def noticelist_css() w = Weblet.new(@weblet_file) lines = [] lines << w.render(:main) lines << w.render('main/user') lines << w.render(:notice) lines << w.render('notice/cards') lines << w.render('main/noticelist') lines << w.render('main/footer') lines.join("\n") end |