Sha256: b57363c4b1f38e4c11c159e5b78aa90682d385068616d396aedf893b0a35c49e
Contents?: true
Size: 558 Bytes
Versions: 1
Compression:
Stored size: 558 Bytes
Contents
module ValidData class Runner def initialize(padding, adapter) @padding = padding.to_i @adapter = adapter @printer = Printer.new(padding.to_i) end def run collector.each { |result| puts printer.print(result) } end private attr_reader :padding, :adapter, :printer def collector @collector ||= Collector.new(models) end def models adapter.descendants.reject do |klass| klass.name.include?("::Translation") || klass.abstract_class? end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
valid_data-0.0.1 | lib/valid_data/runner.rb |