class Voom::Presenters::DSL::Components::Avatar

Attributes

avatar[RW]
color[RW]
position[RW]
size[RW]

Public Class Methods

new(**attribs_, &block) click to toggle source
Calls superclass method
# File lib/voom/presenters/dsl/components/avatar.rb, line 10
def initialize(**attribs_, &block)
  super(type: :avatar, **attribs_, &block)
  @avatar   = attribs.delete(:avatar)
  @color    = attribs.delete(:color)
  @size     = attribs.delete(:size){ :default }
  @position = Array(attribs.delete(:position)).compact
  expand!
end