class Nite::Owl::HasFlags
Public Class Methods
new(flags)
click to toggle source
Calls superclass method
Nite::Owl::Action::new
# File lib/nite/owl/niteowl.rb, line 398 def initialize(flags) super() @flags = flags end
Public Instance Methods
call(name,flags)
click to toggle source
Calls superclass method
Nite::Owl::Action#call
# File lib/nite/owl/niteowl.rb, line 405 def call(name,flags) match?(flags) && super(name,flags) end
match?(flags)
click to toggle source
# File lib/nite/owl/niteowl.rb, line 402 def match?(flags) @flags.find { |f| flags.include?(f) } end