Sha256: c6f3e1ef22f007def3e7e948fbbe242fd7d25a4cbebf9edeade6d7253143e20a

Contents?: true

Size: 1.17 KB

Versions: 8

Compression:

Stored size: 1.17 KB

Contents

#--
# $Id: describable.rb,v 1.5 2009/02/28 23:52:13 rmagick Exp $
# Copyright (C) 2009 Timothy P. Hunter
#++
module Magick
  class RVG
    #--
    # Corresponds to SVG's Description.class
    #++
    # This module defines a number of metadata attributes.
    module Describable
      private

      def initialize(*args, &block)       #:nodoc:
        super
        @title, @desc, @metadata = nil
      end

      public

      # Sets the object description
      attr_writer :desc
      # Sets the object title
      attr_writer :title
      # Sets the object metadata
      attr_writer :metadata

      # Returns the title of this object. The RVG object title is stored as
      # the 'title' property on the image
      def title
        @title.to_s
      end

      # Returns the description of this object. The RVG object description is
      # stored as the 'desc' property on the image
      def desc
        @desc.to_s
      end

      # Returns additional metadata of this object. The RVG object metadata
      # are stored as the 'metadata' property on the image
      def metadata
        @metadata.to_s
      end
    end     # module Describable
  end # class RVG
end # module Magick

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
rmagick-windows-2.16.5 lib/rvg/describable.rb
rmagick-windows-2.16.4 lib/rvg/describable.rb
rmagick-windows-2.16.3 lib/rvg/describable.rb
rmagick-windows-2.16.2 lib/rvg/describable.rb
rmagick-windows-2.16.1 lib/rvg/describable.rb
mdg-1.0.1 vendor/bundle/ruby/2.3.0/gems/rmagick-2.16.0/lib/rvg/describable.rb
rmagick-2.16.0 lib/rvg/describable.rb
rmagick-2.15.4 lib/rvg/describable.rb