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, record: ::Pragmater::Configuration::Model.new) ⇒ Pragmater
constructor
A new instance of Pragmater.
Constructor Details
#initialize(configuration, client: ::Pragmater::Inserter.new, record: ::Pragmater::Configuration::Model.new) ⇒ Pragmater
Returns a new instance of Pragmater.
14 15 16 17 18 19 20 |
# File 'lib/rubysmith/extensions/pragmater.rb', line 14 def initialize configuration, client: ::Pragmater::Inserter.new, record: ::Pragmater::Configuration::Model.new @configuration = configuration @client = client @record = record end |
Class Method Details
.call ⇒ Object
12 |
# File 'lib/rubysmith/extensions/pragmater.rb', line 12 def self.call(...) = new(...).call |
Instance Method Details
#call ⇒ Object
22 |
# File 'lib/rubysmith/extensions/pragmater.rb', line 22 def call = client.call(settings) && configuration |