Module: ParamParam::Std

Defined in:
lib/param_param/std.rb

Overview

It defines some actions that can be useful in an everyday life.

Defined Under Namespace

Modules: Actions, Messages

Constant Summary collapse

TRUE_VALUES =

Some string values that can be considered as true (thank you dry-rb for inspiration).

%w[1 on On ON t true True TRUE T y yes Yes YES Y].freeze
FALSE_VALUES =

Some string values that can be considered as false (thank you dry-rb for inspiration).

%w[0 off Off OFF f false False FALSE F n no No NO N].freeze

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



6
7
8
9
# File 'lib/param_param/std.rb', line 6

def self.included(base)
  base.include(Messages)
  base.extend(Actions)
end