module Voom::Presenters::DSL::Components::Mixins::Common

Public Instance Methods

avatar(avatar = nil, **attributes, &block) click to toggle source
# File lib/voom/presenters/dsl/components/mixins/common.rb, line 47
def avatar(avatar = nil, **attributes, &block)
  self << Components::Avatar.new(parent: self, avatar: avatar, **attributes, &block)
end
badge(badge=nil, **attributes, &block) click to toggle source
# File lib/voom/presenters/dsl/components/mixins/common.rb, line 22
def badge(badge=nil, **attributes, &block)
  self << Components::Badge.new(parent: self, badge: badge, **attributes, &block)
end
card(**attributes, &block) click to toggle source
# File lib/voom/presenters/dsl/components/mixins/common.rb, line 26
def card(**attributes, &block)
  self << Components::Card.new(parent: self, **attributes, &block)
end
form(id: nil, **attributes, &block) click to toggle source
# File lib/voom/presenters/dsl/components/mixins/common.rb, line 30
def form(id: nil, **attributes, &block)
  self << Components::Form.new(parent: self, id: id, **attributes, &block)
end
list(**attributes, &block) click to toggle source
# File lib/voom/presenters/dsl/components/mixins/common.rb, line 34
def list(**attributes, &block)
  self << Components::List.new(parent: self,
                               **attributes, &block)
end
table(**attributes, &block) click to toggle source
# File lib/voom/presenters/dsl/components/mixins/common.rb, line 39
def table(**attributes, &block)
  self << Components::Table.new(parent: self, **attributes, &block)
end
unordered_list(**attributes, &block) click to toggle source
# File lib/voom/presenters/dsl/components/mixins/common.rb, line 43
def unordered_list(**attributes, &block)
  self << Components::UnorderedList.new(parent: self, **attributes, &block)
end