File: change.rb

package info (click to toggle)
ruby-oj 2.17.4-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 968 kB
  • ctags: 1,672
  • sloc: ansic: 10,658; ruby: 6,524; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 289 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

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