module PrimePrinter
Constants
- VERSION
Public Class Methods
print_output(**args)
click to toggle source
# File lib/prime_printer.rb, line 8 def self.print_output(**args) if args.key? :position PositionalPrinter.new(position: args[:position].to_i).print_output elsif args.size > 0 puts ["Unexpected arguments #{args}", "Usage examples: ", "\t prime_printer", "\t prime_printer position n # where n is a positive integer"].join("\n") else TablePrinter.new.print_output end end