Module: Jekyll::JekyllRdf::Helper::Types
- Defined in:
- lib/jekyll/helper/rdf_types.rb
Overview
Internal module for registering custom types
Constant Summary collapse
- @@types =
[]
Class Method Summary collapse
Class Method Details
.find(type) ⇒ Object
38 39 40 41 42 |
# 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) ⇒ Object
34 35 36 |
# File 'lib/jekyll/helper/rdf_types.rb', line 34 def self.register type @@types.push type end |