Method: When::Parts::Resource#iri
- Defined in:
- lib/when_exe/parts/resource.rb
#iri(prefix = false) ⇒ Sring
オブジェクトの IRI
689 690 691 692 693 694 695 696 697 698 699 700 |
# File 'lib/when_exe/parts/resource.rb', line 689 def iri(prefix=false) unless @iri root = @_pool['..'] path = root.instance_of?(String) ? root : label.to_s if root.respond_to?(:iri) root_iri = root.iri path = root_iri + '::' + path if root_iri end @iri = path end prefix ? Resource._simplify_path(@iri) : @iri end |