Class: LinkedRails::Vocab::CustomVocabulary

Inherits:
RDF::Vocabulary
  • Object
show all
Defined in:
lib/linked_rails/vocab.rb

Instance Method Summary collapse

Instance Method Details

#__name__Object



12
13
14
# File 'lib/linked_rails/vocab.rb', line 12

def __name__
  @__key__
end

#__prefix__Object



16
17
18
# File 'lib/linked_rails/vocab.rb', line 16

def __prefix__
  __name__.split('::').last.downcase.to_sym
end

#key=(value) ⇒ Object



8
9
10
# File 'lib/linked_rails/vocab.rb', line 8

def key=(value)
  @__key__ = value
end