Class: Convoy::Formatter::Options
- Inherits:
-
Object
- Object
- Convoy::Formatter::Options
- Includes:
- Enumerable
- Defined in:
- lib/convoy/formatter/options.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#parser ⇒ Object
readonly
Returns the value of attribute parser.
-
#setup ⇒ Object
readonly
Returns the value of attribute setup.
Instance Method Summary collapse
- #count ⇒ Object (also: #size)
- #each(&block) ⇒ Object
-
#initialize(parser, setup, context) ⇒ Options
constructor
A new instance of Options.
Constructor Details
#initialize(parser, setup, context) ⇒ Options
Returns a new instance of Options.
8 9 10 11 12 |
# File 'lib/convoy/formatter/options.rb', line 8 def initialize(parser, setup, context) @parser = parser @setup = setup @context = context end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
6 7 8 |
# File 'lib/convoy/formatter/options.rb', line 6 def context @context end |
#parser ⇒ Object (readonly)
Returns the value of attribute parser.
6 7 8 |
# File 'lib/convoy/formatter/options.rb', line 6 def parser @parser end |
#setup ⇒ Object (readonly)
Returns the value of attribute setup.
6 7 8 |
# File 'lib/convoy/formatter/options.rb', line 6 def setup @setup end |
Instance Method Details
#count ⇒ Object Also known as: size
21 22 23 |
# File 'lib/convoy/formatter/options.rb', line 21 def count parser.specs.keys.size end |