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, , &block init , for: :text, centered: false init_haml_helpers @title = title = Array.new @content = capture_haml self, &block end |