Sha256: a6b4487e8829866b46608782afac1716c48b8a925c3af92f8d6aba7109697fec
Contents?: true
Size: 518 Bytes
Versions: 1
Compression:
Stored size: 518 Bytes
Contents
# frozen_string_literal: true require "hanami/utils/basic_object" module Hanami class Application module Settings # Application settings definition DSL # # @since 2.0.0 # @api private class Definition < Hanami::Utils::BasicObject attr_reader :settings def initialize(&block) @settings = [] instance_eval(&block) if block end def setting(name, *args) @settings << [name, args] end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hanami-2.0.0.alpha2 | lib/hanami/application/settings/definition.rb |