Module: Voom::Presenters::DSL::Components::Mixins::Typography
- Includes:
- Append
- Defined in:
- lib/voom/presenters/dsl/components/mixins/typography.rb
Instance Method Summary collapse
- #body(*text, **attributes, &block) ⇒ Object
- #display(*text, **attributes, &block) ⇒ Object (also: #heading)
- #headline(*text, **attributes, &block) ⇒ Object
- #subheading(*text, **attributes, &block) ⇒ Object
- #title(*text, **attributes, &block) ⇒ Object
Methods included from Append
Instance Method Details
#body(*text, **attributes, &block) ⇒ Object
29 30 31 |
# File 'lib/voom/presenters/dsl/components/mixins/typography.rb', line 29 def body(*text, **attributes, &block) self << Components::Typography.new(parent: self, type: :body, text: text, context: context, **attributes, &block) end |
#display(*text, **attributes, &block) ⇒ Object Also known as: heading
11 12 13 |
# File 'lib/voom/presenters/dsl/components/mixins/typography.rb', line 11 def display(*text, **attributes, &block) self << Components::Typography.new(parent: self, type: :display, text: text, context: context, **attributes, &block) end |
#headline(*text, **attributes, &block) ⇒ Object
16 17 18 |
# File 'lib/voom/presenters/dsl/components/mixins/typography.rb', line 16 def headline(*text, **attributes, &block) self << Components::Typography.new(parent: self, type: :headline, text: text, context: context, **attributes, &block) end |
#subheading(*text, **attributes, &block) ⇒ Object
25 26 27 |
# File 'lib/voom/presenters/dsl/components/mixins/typography.rb', line 25 def subheading(*text, **attributes, &block) self << Components::Typography.new(parent: self, type: :subheading, text: text, context: context, **attributes, &block) end |
#title(*text, **attributes, &block) ⇒ Object
21 22 23 |
# File 'lib/voom/presenters/dsl/components/mixins/typography.rb', line 21 def title(*text, **attributes, &block) self << Components::Typography.new(parent: self, type: :title, text: text, context: context, **attributes, &block) end |