Module: SolidUseCase::Either::ClassMethods

Defined in:
lib/solid_use_case/either/class_methods.rb

Instance Method Summary collapse

Instance Method Details

#can_run_either?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/solid_use_case/either/class_methods.rb', line 14

def can_run_either?
  true
end

#run(input_hash = {}) ⇒ Object



5
6
7
# File 'lib/solid_use_case/either/class_methods.rb', line 5

def run(input_hash={})
  self.new.run(input_hash)
end

#steps(*args) ⇒ Object



9
10
11
12
# File 'lib/solid_use_case/either/class_methods.rb', line 9

def steps(*args)
  @__steps ||= []
  @__steps += args
end