Sha256: f9d3d13e8b5648fa34726628f64cf976a16e403a353437ec0e4f74c45bfa720d

Contents?: true

Size: 549 Bytes

Versions: 1

Compression:

Stored size: 549 Bytes

Contents

module UenfLayout
  module Rails
    class Engine < ::Rails::Engine
    end
  end

  def self.config
    @@config ||= UenfLayout::Configuration.new
    yield @@config if block_given?
    @@config
  end

  class Configuration
    attr_accessor :nome_sistema, :setor, :telefone, :email
    attr_writer :nome_sistema_rodape

    def versao
      unless @versao
        @versao = `git describe --abbrev=0 --tags`.chomp rescue nil
      end
      @versao
    end

    def nome_sistema_rodape
      @nome_sistema_rodape || @nome_sistema
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
uenf_layout-1.3.12 lib/uenf_layout.rb