Class: Rubysmith::Extensions::Pragmater
- Inherits:
-
Object
- Object
- Rubysmith::Extensions::Pragmater
- Defined in:
- lib/rubysmith/extensions/pragmater.rb
Overview
Ensures project skeleton has pragmas.
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(configuration, client: ::Pragmater::Inserter.new) ⇒ Pragmater
constructor
A new instance of Pragmater.
Constructor Details
#initialize(configuration, client: ::Pragmater::Inserter.new) ⇒ Pragmater
Returns a new instance of Pragmater.
11 12 13 14 |
# File 'lib/rubysmith/extensions/pragmater.rb', line 11 def initialize configuration, client: ::Pragmater::Inserter.new @configuration = configuration @client = client end |
Class Method Details
.call ⇒ Object
9 |
# File 'lib/rubysmith/extensions/pragmater.rb', line 9 def self.call(...) = new(...).call |
Instance Method Details
#call ⇒ Object
16 |
# File 'lib/rubysmith/extensions/pragmater.rb', line 16 def call = client.call && configuration |