rb_cObject
A convenience class for building Redleaf::Resource objects.
$Id$
Copyright © 2008-2009, Michael Granger All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Return a fully-qualified URI for the specified term relative to the namespace.
# File lib/redleaf/namespace.rb, line 74
74: def []( term )
75: term_uri = self.uri.dup
76:
77: if self.fragment_style?
78: term_uri.fragment = term.to_s
79: else
80: term_uri.path += term.to_s
81: end
82:
83: return term_uri
84: end
Returns true if the resources in this namespace are indicated with URI fragments instead of a directory in its path.
# File lib/redleaf/namespace.rb, line 62
62: def fragment_style?
63: return @fragment_style
64: end
Return the Redleaf::Namespace as a String
# File lib/redleaf/namespace.rb, line 68
68: def to_s
69: @uri.to_s
70: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.