Class: HTMLSchema::Microdata::Attribute

Inherits:
Attribute show all
Defined in:
lib/html-schema/microdata/attribute.rb

Instance Attribute Summary

Attributes inherited from Attribute

#options, #required, #type, #value

Attributes inherited from Object

#_name, #as, #attributes, #classes, #parent, #source, #types

Instance Method Summary collapse

Methods inherited from Attribute

attribute?, #format, #initialize, #inspect, #to_object

Methods inherited from Object

#[], #attribute, #initialize, #inspect, #to_object, #type

Constructor Details

This class inherits a constructor from HTMLSchema::Attribute

Instance Method Details

#to_hashObject



4
5
6
# File 'lib/html-schema/microdata/attribute.rb', line 4

def to_hash
  {:itemprop => classes.join(" ")}
end