File: change.rb

package info (click to toggle)
ruby-oj 3.16.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,852 kB
  • sloc: ansic: 19,402; ruby: 11,451; makefile: 17
file content (13 lines) | stat: -rw-r--r-- 288 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
module Sample
  class Change
    attr_accessor :time
    attr_accessor :user
    attr_accessor :comment
    
    def initialize(comment=nil, time=nil, user=nil)
      @user = user || ENV['USER'] 
      @time = time || Time.now
      @comment = comment
    end
  end # Change
end # Sample