class Convoy::Formatter::Options
Attributes
context[R]
parser[R]
setup[R]
Public Class Methods
new(parser, setup, context)
click to toggle source
# File lib/convoy/formatter/options.rb, line 8 def initialize(parser, setup, context) @parser = parser @setup = setup @context = context end
Public Instance Methods
count()
click to toggle source
# File lib/convoy/formatter/options.rb, line 21 def count parser.specs.keys.size end
Also aliased as: size
each(&block)
click to toggle source
# File lib/convoy/formatter/options.rb, line 14 def each(&block) parser.specs.each do |option_name, details| option = Option.new(option_name, details, setup, context) block.call(option) end end