add block inspect, status: up to first jump

This commit is contained in:
Torsten Ruger
2015-07-17 15:14:41 +03:00
parent 69414a11f9
commit c22a4a95d3
4 changed files with 33 additions and 10 deletions

View File

@ -0,0 +1,13 @@
# represent a block and hold the actual instance (as transient)
class BlockModel < Volt::Model
field :name
attr_accessor :block
def initialize(b)
super()
@block = b
self.name = b.nil? ? 'undefined' : b.name
end
end