class SiSU_Param::Parameters::MdDefault

Public Instance Methods

all() click to toggle source
# File lib/sisu/dp.rb, line 150
def all
  s=nil
  if @author
    #puts assignment(@author)
    s ||=((@date =~/((?:1[4-9]|2[01])\d{2})/ ) \
    ? ("Copyright (C) #{$1} #{@author}")
    : ('Copyright (C)' + @author))                     #matches years 1400 through 21\d\d
  end
  s
end
assignment(author) click to toggle source
# File lib/sisu/dp.rb, line 145
def assignment(author)
  'copyright not explicitly stated, ' \
  + 'program "assigning" copyright to author: ' \
  + author
end
rights(author,date) click to toggle source
# File lib/sisu/dp.rb, line 143
def rights(author,date)
  @author,@date=author,date
  def assignment(author)
    'copyright not explicitly stated, ' \
    + 'program "assigning" copyright to author: ' \
    + author
  end
  def all
    s=nil
    if @author
      #puts assignment(@author)
      s ||=((@date =~/((?:1[4-9]|2[01])\d{2})/ ) \
      ? ("Copyright (C) #{$1} #{@author}")
      : ('Copyright (C)' + @author))                     #matches years 1400 through 21\d\d
    end
    s
  end
  def copyright_and_license
    s=nil
    if @author
      #puts assignment(@author)
      s ||=((@date =~/((?:1[4-9]|2[01])\d{2})/ ) \
      ? ("Copyright (C) #{$1} #{@author}")
      : ('Copyright (C)' + @author))                     #matches years 1400 through 21\d\d
    end
    s
  end
  def text
    all
  end
  def copyright
    def all
      s=nil
      if @author
        s ||=((@date =~/((?:1[4-9]|2[01])\d{2})/ ) \
        ? ("Copyright (C) #{$1} #{@author}")
        : ('Copyright (C)' + @author))                     #matches years 1400 through 21\d\d
      end
      s
    end
    def text
      all
    end
    self
  end
  self
end
text() click to toggle source
# File lib/sisu/dp.rb, line 170
def text
  all
end