class Voom::Presenters::DSL::Components::Menu::Divider
Public Class Methods
new(**attribs, &block)
click to toggle source
Calls superclass method
Voom::Presenters::DSL::Components::Base::new
# File lib/voom/presenters/dsl/components/menu.rb, line 112 def initialize(**attribs, &block) super(type: :divider, **attribs, &block) @position = validate_position(attribs.delete(:position) { :top }) @size = validate_size(attribs.delete(:size) { :normal }) @color = attribs.delete(:color) { :primary } end