From ef1235d3e80028dff5425a1ef63fd94c71b1b25d Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Thu, 20 Aug 2015 16:07:44 +0200 Subject: [PATCH] small preparations --- lib/class_view.rb | 31 +++++++++++++++---------------- lib/element_view.rb | 2 +- lib/list_view.rb | 2 +- 3 files changed, 17 insertions(+), 18 deletions(-) diff --git a/lib/class_view.rb b/lib/class_view.rb index 7dc921f..f58d629 100644 --- a/lib/class_view.rb +++ b/lib/class_view.rb @@ -24,22 +24,21 @@ class ClassView < ListView end def draw - div.classes do - h4 {"Classes"} - ul.nav do - #{{page._classes.each do |clas| }} - li do - a { "me "} - # {{ clas._name }} - # {{ unless variables(clas).empty? }} - # - end + div.classes do + h4 {"Classes"} + ul.nav do + #{{page._classes.each do |clas| }} + li do + a { "me "} + # {{ clas._name }} + # {{ unless variables(clas).empty? }} + # end end end diff --git a/lib/element_view.rb b/lib/element_view.rb index a8bdad9..93fa30c 100644 --- a/lib/element_view.rb +++ b/lib/element_view.rb @@ -1,6 +1,6 @@ class ElementView def initialize - + @element = nil end end diff --git a/lib/list_view.rb b/lib/list_view.rb index 5d7930e..225ffe8 100644 --- a/lib/list_view.rb +++ b/lib/list_view.rb @@ -3,7 +3,7 @@ require "element_view" class ListView < ElementView def initialize - + @elements = [] end end