Class: Avm::Data::Performer

Inherits:
Object
  • Object
show all
Defined in:
lib/avm/data/performer.rb

Direct Known Subclasses

Clearer, Dumper

Instance Method Summary collapse

Instance Method Details

#immutable_constructor_argsEnumerable

Returns:

  • (Enumerable)


16
17
18
# File 'lib/avm/data/performer.rb', line 16

def immutable_constructor_args
  [data_owner]
end

#performself

Returns:

  • (self)


21
22
23
24
25
26
27
# File 'lib/avm/data/performer.rb', line 21

def perform
  raise "Cannot run: #{cannot_run_reason}" unless performable?

  internal_perform

  self
end

#performable?Boolean

Returns:

  • (Boolean)


30
31
32
# File 'lib/avm/data/performer.rb', line 30

def performable?
  cannot_perform_reason.blank?
end