class NRSER::RSpex::Opts
Public Instance Methods
to_desc(max = nil)
click to toggle source
# File lib/nrser/rspex.rb, line 194 def to_desc max = nil return '' if empty? max = [16, ( 64 / self.count )].max if max.nil? map { |key, value| if key.is_a? Symbol "#{ key }: #{ NRSER::RSpex.short_s value, max }" else "#{ NRSER::RSpex.short_s key, max } => #{ NRSER::RSpex.short_s value, max }" end }.join( ", " ) end