Module: Sword2Ruby

Defined in:
lib/sword2ruby.rb,
lib/sword2ruby/feed.rb,
lib/sword2ruby/user.rb,
lib/sword2ruby/entry.rb,
lib/sword2ruby/element.rb,
lib/sword2ruby/service.rb,
lib/sword2ruby/utility.rb,
lib/sword2ruby/version.rb,
lib/sword2ruby/constant.rb,
lib/sword2ruby/exception.rb,
lib/sword2ruby/collection.rb,
lib/sword2ruby/connection.rb,
lib/sword2ruby/sword_accept.rb,
lib/sword2ruby/auto_discover.rb,
lib/sword2ruby/rexml_element.rb,
lib/sword2ruby/deposit_receipt.rb,
lib/sword2ruby/sword_statement_oai_ore.rb

Overview

Sword2Ruby module

Defined Under Namespace

Modules: Atom Classes: AutoDiscover, Connection, DepositReceipt, Exception, SwordAccept, SwordStatementOAIORE, User, Utility

Constant Summary collapse

VERSION =

The version of the Sword2Ruby library

"1.0.1"
ATOM_SYNDICATION_FORMAT_NAMESPACE =

The Atom Syndication Format namespace: www.w3.org/2005/Atom

"http://www.w3.org/2005/Atom"
ATOM_PUBLISHING_PROTOCOL_NAMESPACE =

Atom Publishing Protocol namespace: www.w3.org/2007/app

"http://www.w3.org/2007/app"
VALID_URI_SCHEMES =

An array of valid URL schemes: http://, https:// and file://

[:http, :https, :file]
NIL_LAMBDA =

A special lambda object representing the nil object, used by find() when parsing XML which may or may not contain specific elements and attributes

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;
}