Sha256: 5f405bcef59b769f6d9821622a86f9a0d5b2842764dbba3172266ad79e9dab7d

Contents?: true

Size: 794 Bytes

Versions: 2

Compression:

Stored size: 794 Bytes

Contents

module Sword2Ruby
  
  #The Atom Syndication Format namespace: http://www.w3.org/2005/Atom
  ATOM_SYNDICATION_FORMAT_NAMESPACE = "http://www.w3.org/2005/Atom"
  
  #Atom Publishing Protocol namespace: http://www.w3.org/2007/app
  ATOM_PUBLISHING_PROTOCOL_NAMESPACE = "http://www.w3.org/2007/app"
  
  #An array of valid URL schemes: http://, https:// and file://
  VALID_URI_SCHEMES = [:http, :https, :file]
  
  #A special lambda object representing the nil object, used by find() when parsing XML which may or may not contain specific elements and attributes
  NIL_LAMBDA = lambda {
    result = nil;

    def result.text
      nil
    end

    def result.href
      nil
    end

    def result.value
      nil
    end

    def result.attribute(name)
      nil
    end

    result;
  }
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sword2ruby-1.0.1 lib/sword2ruby/constant.rb
sword2ruby-1.0.0 lib/sword2ruby/constant.rb