Module: Outputter::InstanceMethods
- Defined in:
- lib/randomperson/outputter.rb
Overview
ClassMethods
Instance Method Summary collapse
Instance Method Details
#execute(person = nil) ⇒ Object
14 15 16 |
# File 'lib/randomperson/outputter.rb', line 14 def execute( person=nil ) @on_execute.call( person ) end |
#on_execute(&block) ⇒ Object
10 11 12 |
# File 'lib/randomperson/outputter.rb', line 10 def on_execute( &block ) @on_execute = block end |