Sha256: f5af8da267576bb8f97d4d8a1c97a63748d673f7f1a6dbaf6d2ff7400c696b6f
Contents?: true
Size: 732 Bytes
Versions: 1
Compression:
Stored size: 732 Bytes
Contents
require "fixer_upper/error" require "fixer_upper/renovation" require "fixer_upper/version" class FixerUpper def initialize @engine_registry = {} @renovation = Renovation.new(@engine_registry) end def []=(*keys, engine) keys.each do |key| @engine_registry[key] = engine end end def [](key) @engine_registry[key] end def renovate(filepath, contents = nil) @renovation.renovate(filepath, contents, bang: false) end def renovate!(filepath, contents = nil) @renovation.renovate(filepath, contents, bang: true) end def diy(text, engines) @renovation.diy(text, engines, bang: false) end def diy!(text, engines) @renovation.diy(text, engines, bang: true) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fixer_upper-0.1.0 | lib/fixer_upper.rb |