Sha256: 917e3edae57b2f5e4ac5218cc3528d518d182aa4a7074ad0c605cca08e9ba15e
Contents?: true
Size: 709 Bytes
Versions: 1
Compression:
Stored size: 709 Bytes
Contents
# frozen_string_literal: true require "forwardable" require "hanami/view" module Milestoner module Views # Provides a common context for all views. class Context < Hanami::View::Context extend Forwardable include Import[:input] delegate %i[ generator_label generator_uri generator_version project_author project_description project_generator project_label project_name project_uri project_version ] => :input def project_slug = [project_name, project_version].compact.join("_").tr ".", "" def project_title = [project_label, project_version].compact.join " " end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
milestoner-17.6.0 | lib/milestoner/views/context.rb |