Sha256: ae154cf0065f60c2415297c7ae52a59195fe2550b6e07ec1f131392c032ab82a

Contents?: true

Size: 475 Bytes

Versions: 5

Compression:

Stored size: 475 Bytes

Contents

require 'titlezilla/version'
require 'titlezilla/helpers'

module Titlezilla
  def self.configure
    yield(configuration) if block_given?
  end

  def self.configuration
    @configuration ||= Configuration.new
  end

  def self.reset_configuration
    @configuration = Configuration.new
  end

  class Configuration
    attr_accessor :action_map, :separator

    def initialize
      @action_map = { create: :new, update: :edit }
      @separator = ' | '
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
titlezilla-0.1.4 lib/titlezilla.rb
titlezilla-0.1.3 lib/titlezilla.rb
titlezilla-0.1.2 lib/titlezilla.rb
titlezilla-0.1.1 lib/titlezilla.rb
titlezilla-0.1.0 lib/titlezilla.rb