lib/Checked/Ask/Vars.rb in Checked-1.2.3 vs lib/Checked/Ask/Vars.rb in Checked-2.0.0

- old
+ new

@@ -1,22 +1,30 @@ -module Checked +class Checked class Ask - class Vars + class Vars < Sinatra::Base - include Uni_Arch::Base - include Ask::Base + include Checked::Arch - namespace '/var!' + map '/var!' - route - def respond_to? - answ = args.map { |a| - target.respond_to? a - }.uniq == [true] - - answ + get + def respond_to_all? + a = not_empty_args! + + a.all? { |a| + return!.respond_to? a + } end + get + def respond_to_any? + a = not_empty_args! + + a.any? { |a| + return!.respond_to? a + } + end + end # === class Vars end # === class Ask -end # === module Checked +end # === class Checked