Method: Slapp::Sugar#frame

Defined in:
lib/slapp.rb

#frame(options = {}, &block) ⇒ Object



25
26
27
28
29
30
# File 'lib/slapp.rb', line 25

def frame options = {}, &block
  elements[:frame] = Frame.new(nil, -1, options[:title])
  block.call
  elements[:frame].show
  return elements[:frame]
end