lib/scripper/sequel.rb in scripper-0.1.0 vs lib/scripper/sequel.rb in scripper-0.1.1

- old
+ new

@@ -1,25 +1,25 @@ -# frozen_string_literal: true - -module Scripper - module Sequel - class << self - def strip(object, **args) - if object.is_a?(Hash) - strip_dataset(object) - else - strip_model(object, **args) - end - end - - private - - def strip_model(*args) - ModelStripper.strip(*args) - end - - def strip_dataset(ds) - DatasetStripper.strip(ds) - end - end - end -end +# frozen_string_literal: true + +module Scripper + module Sequel + class << self + def strip(object, **args) + if object.is_a?(Hash) + strip_dataset(object) + else + strip_model(object, **args) + end + end + + private + + def strip_model(*args) + ModelStripper.strip(*args) + end + + def strip_dataset(ds) + DatasetStripper.strip(ds) + end + end + end +end