Sha256: c6ecd8b761ddbe7b65e20732c0817378107e92e891c4cd461dbc4b3a805435ad

Contents?: true

Size: 507 Bytes

Versions: 126

Compression:

Stored size: 507 Bytes

Contents

# encoding: utf-8
module Mail
  class ContentLocationElement # :nodoc:
    
    include Mail::Utilities
    
    def initialize( string )
      parser = Mail::ContentLocationParser.new
      if tree = parser.parse(string)
        @location = tree.location.text_value
      else
        raise Mail::Field::ParseError.new(ContentLocationElement, string, parser.failure_reason)
      end
    end
    
    def location
      @location
    end
    
    def to_s(*args)
      location.to_s
    end
    
  end
end

Version data entries

126 entries across 114 versions & 13 rubygems

Version Path
classiccms-0.6.8 vendor/bundle/gems/mail-2.4.4/lib/mail/elements/content_location_element.rb
classiccms-0.6.7 vendor/bundle/gems/mail-2.4.4/lib/mail/elements/content_location_element.rb
otherinbox-mail-2.4.4.20121031 lib/mail/elements/content_location_element.rb
classiccms-0.6.6 vendor/bundle/gems/mail-2.4.4/lib/mail/elements/content_location_element.rb
classiccms-0.6.5 vendor/bundle/gems/mail-2.4.4/lib/mail/elements/content_location_element.rb
classiccms-0.6.4 vendor/bundle/gems/mail-2.4.4/lib/mail/elements/content_location_element.rb
classiccms-0.6.3 vendor/bundle/gems/mail-2.4.4/lib/mail/elements/content_location_element.rb
classiccms-0.6.2 vendor/bundle/gems/mail-2.4.4/lib/mail/elements/content_location_element.rb
classiccms-0.6.1 vendor/bundle/gems/mail-2.4.4/lib/mail/elements/content_location_element.rb
classiccms-0.6.0 vendor/bundle/gems/mail-2.4.4/lib/mail/elements/content_location_element.rb
challah-0.8.1 vendor/bundle/gems/mail-2.4.4/lib/mail/elements/content_location_element.rb
classiccms-0.5.17 vendor/bundle/gems/mail-2.4.4/lib/mail/elements/content_location_element.rb
classiccms-0.5.16 vendor/bundle/gems/mail-2.4.4/lib/mail/elements/content_location_element.rb
classiccms-0.5.15 vendor/bundle/gems/mail-2.4.4/lib/mail/elements/content_location_element.rb
classiccms-0.5.14 vendor/bundle/gems/mail-2.4.4/lib/mail/elements/content_location_element.rb
classiccms-0.5.13 vendor/bundle/gems/mail-2.4.4/lib/mail/elements/content_location_element.rb
classiccms-0.5.12 vendor/bundle/gems/mail-2.4.4/lib/mail/elements/content_location_element.rb
classiccms-0.5.11 vendor/bundle/gems/mail-2.4.4/lib/mail/elements/content_location_element.rb
challah-rolls-0.1.0 vendor/bundle/gems/mail-2.4.4/lib/mail/elements/content_location_element.rb
challah-rolls-0.1.0 vendor/bundle/gems/challah-0.8.0.pre/vendor/bundle/gems/mail-2.4.4/lib/mail/elements/content_location_element.rb