Sha256: 617a0edf266e8718d708566b11ae93fec07353aa2d91af24a5ab759fd2dc6ccb
Contents?: true
Size: 855 Bytes
Versions: 23
Compression:
Stored size: 855 Bytes
Contents
module Dedalus module PatternLibrary class ApplicationFooter < Dedalus::Organism attr_accessor :joyce_version, :dedalus_version, :company, :copyright def show [ footer_message ] end def padding 20 end def self.description "An application footer" end def self.example_data { joyce_version: "x.y.z", dedalus_version: "a.b.c", company: "Hello LLC", copyright: "All rights reserved" } end private def footer_message @footer_message ||= Elements::Paragraph.new(text: assemble_text, scale: 0.5) end def assemble_text "Powered by Dedalus v#{dedalus_version} and Joyce v#{joyce_version}. Copyright #{company} #{copyright}. All rights reserved." end end end end
Version data entries
23 entries across 23 versions & 1 rubygems