module Shrine::Plugins::DataUri::AttachmentMethods

  1. lib/shrine/plugins/data_uri.rb

Methods

Public Class

  1. new

Public Class methods

new (*)
[show source]
# File lib/shrine/plugins/data_uri.rb, line 125
        def initialize(*)
          super

          module_eval "            def #{@name}_data_uri=(uri)
              #{@name}_attacher.data_uri = uri
            end

            def #{@name}_data_uri
              #{@name}_attacher.data_uri
            end
", __FILE__, __LINE__ + 1
        end