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