more info

This commit is contained in:
Torsten Ruger 2015-08-09 12:15:22 +03:00
parent 72a2d22215
commit 0926f1f85f
3 changed files with 12 additions and 7 deletions

View File

@ -25,6 +25,7 @@ class RegisterModel < Volt::Model
clazz = object.class.name.split("::").last clazz = object.class.name.split("::").last
#puts "found #{clazz}" #puts "found #{clazz}"
self.fields << "#{clazz}:#{object.internal_object_length}" self.fields << "#{clazz}:#{object.internal_object_length}"
self.fields << object.get_layout
object.get_instance_variables.each do |variable| object.get_instance_variables.each do |variable|
f = object.get_instance_variable(variable) f = object.get_instance_variable(variable)
self.fields << f self.fields << f

View File

@ -8,8 +8,10 @@
<h4> Block: {{page._block_name}} </h4> <h4> Block: {{page._block_name}} </h4>
</div> </div>
{{ page._blocks.each do |b| }} {{ page._blocks.each do |b| }}
<div class="{{b._class_name}}"> <div>
{{b._name}} <span class="{{b._class_name}}">
{{b._name}}
</span>
</div> </div>
{{ end }} {{ end }}
</div> </div>

View File

@ -4,9 +4,11 @@
<:Body> <:Body>
<div class="source-view"> <div class="source-view">
<h4> Virtual Machine Instruction </h4> <h4> Virtual Machine Instruction </h4>
{{page._sources.each do |source| }} {{page._sources.each do |source| }}
<div class="{{source._class_name}}"> <div>
{{source._name}} <span class="{{source._class_name}}">
</div> {{source._name}}
{{end}} </span>
</div>
{{end}}
</div> </div>