Method: CodelessCode::Commands::FilterFables#call
- Defined in:
- lib/codeless_code/commands/filter_fables.rb
#call(&blk) ⇒ Object
34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/codeless_code/commands/filter_fables.rb', line 34 def call(&blk) fables = (&blk) case fables.size when 0 warn 'None found.' when 1 show(fables.first) else list(fables) end end |