Module: Kind::Action

Includes:
ImmutableAttributes::Initializer
Defined in:
lib/kind/action.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Methods included from ImmutableAttributes::Initializer

#initialize, #nil_attributes, #nil_attributes?

Class Method Details

.included(base) ⇒ Object



99
100
101
102
103
104
105
# File 'lib/kind/action.rb', line 99

def self.included(base)
  Kind.of_class(base).extend(ClassMethods)

  base.send(:include, ACTION_STEPS)
  base.send(:include, StepAdapters)
  base.send(:include, ImmutableAttributes::Reader)
end

Instance Method Details

#inspectObject



109
110
111
# File 'lib/kind/action.rb', line 109

def inspect
  '#<%s attributes=%p nil_attributes=%p>' % [self.class.name, attributes, nil_attributes]
end