Class: Quickdraw::Configuration
- Inherits:
-
Object
- Object
- Quickdraw::Configuration
- Defined in:
- lib/quickdraw/configuration.rb
Instance Attribute Summary collapse
-
#registry ⇒ Object
readonly
Returns the value of attribute registry.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #matcher(matcher, *types) ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
4 5 6 |
# File 'lib/quickdraw/configuration.rb', line 4 def initialize @registry = Quickdraw::Registry.new end |
Instance Attribute Details
#registry ⇒ Object (readonly)
Returns the value of attribute registry.
8 9 10 |
# File 'lib/quickdraw/configuration.rb', line 8 def registry @registry end |
Instance Method Details
#matcher(matcher, *types) ⇒ Object
10 11 12 |
# File 'lib/quickdraw/configuration.rb', line 10 def matcher(matcher, *types) @registry.register(matcher, *types) end |