Module: Kind::Functional

Defined in:
lib/kind/functional.rb,
lib/kind/functional/steps.rb

Defined Under Namespace

Modules: Action, Behavior, ClassMethods, DependencyInjection, Steps

Class Method Summary collapse

Class Method Details

.extended(_) ⇒ Object

Raises:

  • (RuntimeError)


9
10
11
# File 'lib/kind/functional.rb', line 9

def self.extended(_)
  raise RuntimeError, "The Kind::Functional can't be extended, it can be only included."
end

.included(base) ⇒ Object



13
14
15
# File 'lib/kind/functional.rb', line 13

def self.included(base)
  Kind.of_class(base).send(:extend, ClassMethods)
end