Method: Aureus::Components::Box#initialize

Defined in:
lib/aureus/components/box.rb

#initialize(title, options, &block) ⇒ Box

Returns a new instance of Box.



7
8
9
10
11
12
13
# File 'lib/aureus/components/box.rb', line 7

def initialize title, options, &block
  init options, for: :text, centered: false
  init_haml_helpers
  @title = title
  @buttons = Array.new
  @content = capture_haml self, &block
end