Class: CustomTeacupClass

Inherits:
Object
  • Object
show all
Includes:
Teacup::Layout
Defined in:
app/custom_class.rb

Instance Method Summary collapse

Methods included from Teacup::Layout

#auto, included, #layout, #stylesheet, #stylesheet=, #subview, #top_level_view

Constructor Details

#initializeCustomTeacupClass

Returns a new instance of CustomTeacupClass.



13
14
15
# File 'app/custom_class.rb', line 13

def initialize
  self.stylesheet = :custom
end

Instance Method Details

#create_containerObject



17
18
19
20
21
# File 'app/custom_class.rb', line 17

def create_container
  layout(UIView, :container) do
    subview(UILabel, :label)
  end
end