Module: Decentworks::DateSupport
- Defined in:
- lib/decentworks/date_support/version.rb,
lib/decentworks/date_support/configuration.rb,
lib/decentworks/date_support/date_extension.rb,
lib/decentworks/date_support/time_extension.rb,
lib/generators/decentworks/date_support/install/install_generator.rb,
sig/decentworks/date_support/version.rbs,
sig/decentworks/date_support/configuration.rbs,
sig/decentworks/date_support/date_extension.rbs,
sig/decentworks/date_support/time_extension.rbs
Defined Under Namespace
Modules: DateExtension, Generators, TimeExtension, _DateCalculations, _DateTimeCalculations Classes: Configuration
Constant Summary collapse
- VERSION =
"0.2.0"
Class Method Summary collapse
-
.configuration ⇒ ::Decentworks::DateSupport::Configuration
設定を取得する configureが未実行の場合は初期値で生成する.
-
.configure {|configuration| ... } ⇒ void
設定を変更する 未実行の場合は初期値(1月始まり)が使用される.
- .first_quarter_month ⇒ Integer
- .first_quarter_month_name ⇒ Symbol
- .first_quarter_month_offset ⇒ Integer
-
.reset_configuration! ⇒ nil
設定を初期化する.
Class Method Details
.configuration ⇒ ::Decentworks::DateSupport::Configuration
設定を取得する configureが未実行の場合は初期値で生成する
18 19 20 |
# File 'lib/decentworks/date_support/configuration.rb', line 18 def configuration @configuration ||= Configuration.new end |
.configure {|configuration| ... } ⇒ void
This method returns an undefined value.
設定を変更する 未実行の場合は初期値(1月始まり)が使用される
12 13 14 |
# File 'lib/decentworks/date_support/configuration.rb', line 12 def configure yield(configuration) if block_given? end |
.first_quarter_month ⇒ Integer
9 |
# File 'sig/decentworks/date_support/configuration.rbs', line 9
def self.first_quarter_month: -> Integer
|
.first_quarter_month_name ⇒ Symbol
8 |
# File 'sig/decentworks/date_support/configuration.rbs', line 8
def self.first_quarter_month_name: -> Symbol
|
.first_quarter_month_offset ⇒ Integer
10 |
# File 'sig/decentworks/date_support/configuration.rbs', line 10
def self.first_quarter_month_offset: -> Integer
|
.reset_configuration! ⇒ nil
設定を初期化する
29 30 31 |
# File 'lib/decentworks/date_support/configuration.rb', line 29 def reset_configuration! @configuration = nil end |