Module: FunctionalLightService::Action

Defined in:
lib/functional-light-service/action.rb

Defined Under Namespace

Modules: Macros

Class Method Summary collapse

Class Method Details

.extended(base_class) ⇒ Object



5
6
7
8
# File 'lib/functional-light-service/action.rb', line 5

def self.extended(base_class)
  base_class.extend Macros
  base_class.extend FunctionalLightService::Prelude::Result
end

.included(base_class) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/functional-light-service/action.rb', line 10

def self.included(base_class)
  FunctionalLightService::Deprecations.warn(
    "Including FunctionalLightService::Action is deprecated; " \
    "use `extend FunctionalLightService::Action` instead"
  )
  base_class.extend Macros
end