Sha256: 648f72a7b941ad67a0d6f248782a267f9febd5b77a24bef1626c334c7cbd2e8b

Contents?: true

Size: 228 Bytes

Versions: 2

Compression:

Stored size: 228 Bytes

Contents

# frozen_string_literal: true

class SecondComponent < ApplicationComponent
  def call
    html(self) do
      h1 class: 'my-class' do
        plain 'Second Component'
      end
      link_to 'Home', root_path
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ruby2html-1.1.0 app/components/second_component.rb
ruby2html-1.0.0 app/components/second_component.rb