ArtboardHorizontalPhoneComponentGenerator

InfoGeneratePackages

This code defines a Ruby class named `ArtboardHorizontalSize6Component`, which inherits from `ApplicationComponent`. The class has one main method named `template`, which generates a `div` element with the class attributes `artboard`, `artboard-horizontal`, and `phone-6`. The method's output is a string containing the dimensions "1024×320". The purpose of this class seems to be to provide a component that represents an artboard of specific dimensions, targeted for a phone layout with horizontal orientation, in a web application or site. The usage of `div` with specific class names suggests it's designed for style customization through CSS.

# frozen_string_literal: true

class ArtboardHorizontalSize6Component < ApplicationComponent
  def template
    div(class: "artboard artboard-horizontal phone-6") { "1024×320" }
  end
end