Class: ActiveFedora::MaybeHashUri
- Inherits:
-
Object
- Object
- ActiveFedora::MaybeHashUri
- Defined in:
- lib/active_fedora/sparql_insert.rb
Instance Attribute Summary collapse
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
- #hash? ⇒ Boolean
-
#initialize(uri) ⇒ MaybeHashUri
constructor
A new instance of MaybeHashUri.
Constructor Details
#initialize(uri) ⇒ MaybeHashUri
Returns a new instance of MaybeHashUri.
71 72 73 |
# File 'lib/active_fedora/sparql_insert.rb', line 71 def initialize(uri) @uri = uri end |
Instance Attribute Details
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
70 71 72 |
# File 'lib/active_fedora/sparql_insert.rb', line 70 def uri @uri end |
Instance Method Details
#hash? ⇒ Boolean
75 76 77 |
# File 'lib/active_fedora/sparql_insert.rb', line 75 def hash? uri.to_s.include?("#") end |