Sha256: 781abbfd2bf6b849bf6a40c77282cc7e45fddcba1feec9dd4585e51747a040ba

Contents?: true

Size: 281 Bytes

Versions: 2

Compression:

Stored size: 281 Bytes

Contents

# frozen_string_literal: true

class FirstComponent < ApplicationComponent
  def initialize
    @item = 'Hello, World!'
  end

  def another_div
    div class: 'another' do
      h2 'Another subheading from component'
    end

    h1 'Yet Another heading from component'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ruby2html-1.3.2 app/components/first_component.rb
ruby2html-1.3.1 app/components/first_component.rb