Sha256: e8b6b1ad06f172ddbd60acdfeadba9925a8555fc7e8d17a4e2f484c6e4b7ba96
Contents?: true
Size: 815 Bytes
Versions: 6
Compression:
Stored size: 815 Bytes
Contents
module RTM # Some useful or maybe not so useful stuff which I don't know how to put else. module PimpMyApi module Occurrence # Create an association out of this occurrence # Norwegian isa: Language # - name: "Norwegian" # - iso639: "no" # iso639: "no" # webpage: http://example.org # to # webpage( subject: Norwegian, occ: =http://www.example.org ) def externalize a = parent.create_association a.create_role parent, RTM::PSI[:subject] a.create_role self.type, self.value # TODO what should be exactly done with value? prepend something? dependend on param? a end end def externalize!(*args) a = externalize(*args) remove a end RTM.register_extension( self ) end end
Version data entries
6 entries across 6 versions & 1 rubygems