cleanup of class view

This commit is contained in:
Torsten Ruger 2015-08-20 20:02:40 +02:00
parent a6c22cf6e0
commit 0e430e8b00

View File

@ -10,15 +10,6 @@ class ClassView < ElementView
@classes.sort! {|a,b| a.name <=> b.name }
end
def variables(clas_model)
layout = Virtual.machine.space.get_class_by_name(clas_model._name).object_layout
vars = []
layout.object_instance_names.each do |name|
vars.push name
end
vars
end
def draw
DOM do |dom|
dom.div.classes do
@ -40,14 +31,5 @@ class ClassView < ElementView
end
end
end
# <a href="#">{{ clas._name }}</a>
# {{ unless variables(clas).empty? }}
# <ul>
# {{variables(clas).each do |var| }}
# <li>
# <a href="#">{{var}}</a>
# </li>
# {{ end }}
# </ul>
end