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
#puts "found #{clazz}"
self.fields << "#{clazz}:#{object.internal_object_length}"
self.fields << object.get_layout
object.get_instance_variables.each do |variable|
f = object.get_instance_variable(variable)
self.fields << f

View File

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

View File

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