class Nite::Owl::FilesAction
Public Class Methods
new(files)
click to toggle source
Calls superclass method
Nite::Owl::Action::new
# File lib/nite/owl/niteowl.rb, line 411 def initialize(files) super() @files = files end
Public Instance Methods
match?(file)
click to toggle source
# File lib/nite/owl/niteowl.rb, line 415 def match?(file) @files.find do |pattern| if pattern.is_a?(Regexp) pattern.match(file) != nil else File.fnmatch?(pattern,file) end end end