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
submit_button?() click to toggle source
# File lib/hypermicrodata/property.rb, line 23
def submit_button?
  false
end