module Jekyll::JekyllRdf::Helper::Types

Internal module for registering custom types

Public Class Methods

find(type) click to toggle source
# File lib/jekyll/helper/rdf_types.rb, line 38
def self.find type
  index = @@types.find_index {|x| x === type.to_s}
  return @@types[index] unless index.nil?
  return nil
end
register(type) click to toggle source
# File lib/jekyll/helper/rdf_types.rb, line 34
def self.register type
  @@types.push type
end