class Hypermicrodata::Property
Attributes
names[R]
rels[R]
value[R]
Public Class Methods
new(value, names, rels = [])
click to toggle source
# File lib/hypermicrodata/property.rb, line 5 def initialize(value, names, rels = []) @value = value @names = names @rels = rels end
Public Instance Methods
item()
click to toggle source
# File lib/hypermicrodata/property.rb, line 11 def item @value if @value.is_a?(Item) end
item?()
click to toggle source
# File lib/hypermicrodata/property.rb, line 15 def item? !!item end
link?()
click to toggle source
# File lib/hypermicrodata/property.rb, line 19 def link? false end