Sha256: 3999209465a8da096cc896c1ef2b000973ec547f2501947c0d76907a3ef9e5a7

Contents?: true

Size: 288 Bytes

Versions: 44

Compression:

Stored size: 288 Bytes

Contents

module Avo
  module Concerns
    module Hydration
      def hydrate(**args)
        args.each do |key, value|
          value = Avo::ViewInquirer.new value if key == :view

          send(:"#{key}=", value) if respond_to?(:"#{key}=")
        end

        self
      end
    end
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
avo-3.14.3 lib/avo/concerns/hydration.rb
avo-3.14.2 lib/avo/concerns/hydration.rb
avo-3.14.1 lib/avo/concerns/hydration.rb
avo-3.14.0 lib/avo/concerns/hydration.rb
avo-3.13.7 lib/avo/concerns/hydration.rb
avo-3.13.6 lib/avo/concerns/hydration.rb
avo-3.13.5 lib/avo/concerns/hydration.rb
avo-3.13.4 lib/avo/concerns/hydration.rb
avo-3.13.3 lib/avo/concerns/hydration.rb
avo-3.13.2 lib/avo/concerns/hydration.rb
avo-3.13.1 lib/avo/concerns/hydration.rb
avo-3.13.0 lib/avo/concerns/hydration.rb
avo-3.12.0 lib/avo/concerns/hydration.rb
avo-3.11.10 lib/avo/concerns/hydration.rb
avo-3.11.9 lib/avo/concerns/hydration.rb
avo-3.11.8 lib/avo/concerns/hydration.rb
avo-3.11.7 lib/avo/concerns/hydration.rb
avo-3.11.6 lib/avo/concerns/hydration.rb
avo-3.11.5 lib/avo/concerns/hydration.rb
avo-3.11.4 lib/avo/concerns/hydration.rb