Module: Heading::HeadingHelper

Defined in:
app/helpers/heading/heading_helper.rb

Instance Method Summary collapse

Instance Method Details

#h(**options) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'app/helpers/heading/heading_helper.rb', line 5

def h(**options)
  if block_given?
    render(Heading::HComponent.new(**options)) do
      yield
    end
  else
    render(Heading::HComponent.new(**options))
  end
end