class Voom::Presenters::DSL::Components::IconBase

Attributes

color[R]
hidden[R]
icon[R]
position[R]
size[R]

Public Class Methods

new(**attribs_, &block) click to toggle source
# File lib/voom/presenters/dsl/components/icon_base.rb, line 9
def initialize(**attribs_, &block)
  super(type: :icon,
        **attribs_, &block)
  @icon     = attribs.delete(:icon)
  @color    = attribs.delete(:color)
  @size     = attribs.delete(:size){ :default }
  @position = Array(attribs.delete(:position)).compact
  @hidden = attribs.delete(:hidden) {false}
end