Sha256: d56323c48f8cd64e3a712bd545f75d32ca98b21d8eda1c264ce52bbb14be33c9

Contents?: true

Size: 303 Bytes

Versions: 12

Compression:

Stored size: 303 Bytes

Contents

module Druid
  module Elements
    class Image < Element

      def self.finders
        super + [:alt, :src]
      end

      def width
        element.width
      end

      def height
        element.height
      end
    end

    Druid::Elements.tag_to_class[:img] = Druid::Elements::Image
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
druid-ts-1.2.2 lib/druid/elements/image.rb
druid-ts-1.2.1 lib/druid/elements/image.rb
druid-ts-1.2.0 lib/druid/elements/image.rb
druid-ts-1.1.8 lib/druid/elements/image.rb
druid-ts-1.1.7 lib/druid/elements/image.rb
druid-ts-1.1.6 lib/druid/elements/image.rb
druid-ts-1.1.5 lib/druid/elements/image.rb
druid-ts-1.1.4 lib/druid/elements/image.rb
druid-ts-1.1.3 lib/druid/elements/image.rb
druid-ts-1.1.2 lib/druid/elements/image.rb
druid-ts-1.1.1 lib/druid/elements/image.rb
druid-ts-1.1.0 lib/druid/elements/image.rb