app/models/note/base.rb
# TODO: This should move to umt because the "list" is more or less proprietary
This should move to umt because the "list" is more or less proprietary
This should move to umt because the " list " is more or less proprietary
def from_annotation_list!(str)
    str.gsub(/\[|\]/, '').split('; ').map { |a| a.split(' ') }.each do |annotation|
      namespace, predicate = annotation.first.split(':', 2)
      annotations << Note::Annotated::Base.new(value: annotation.second,
          namespace: namespace, predicate: predicate)
    end
    self
  end
def from_annotation_list! ( str ) str . gsub ( / \[ | \] / , '' ) . split ( '; ' ) . map { | a | a . split ( ' ' ) } . each do | annotation | namespace , predicate = annotation . first . split ( ':' , 2 ) annotations << Note :: Annotated :: Base . new ( value : annotation . second , namespace : namespace , predicate : predicate ) end self end
TODO: This should move to umt because the "list" is more or less proprietary
TODO : This should move to umt because the " list " is more or less proprietary
str
<not_specific>