| In: |
P4Triggers.rb
|
| Parent: | Object |
A class for encapsulating file types - type checking is quite common in many triggers so it’s nice to have it available to all.
| msg | [R] |
Provide a regexp that the filetype must match and a message for the types that match the regexp. i.e.
FileType.new( /u?binary/, "binary/ubinary" )
# File P4Triggers.rb, line 109
109: def initialize( regexp, message )
110: @re = regexp
111: @msg = message
112: end