From 7da851e82c6d12d348d5383d84eba0aaff745d7d Mon Sep 17 00:00:00 2001 From: MoisesMachado Date: Tue, 10 Jul 2007 21:10:32 +0000 Subject: [PATCH] ActionItem4: exetending the tag class --- lib/extended_tag.rb | 10 ++++++++++ 1 file changed, 10 insertions(+), 0 deletions(-) create mode 100644 lib/extended_tag.rb diff --git a/lib/extended_tag.rb b/lib/extended_tag.rb new file mode 100644 index 0000000..b00e314 --- /dev/null +++ b/lib/extended_tag.rb @@ -0,0 +1,10 @@ +class Tag + def descendents + children.inject([]){|des , child| des + child.descendents << child} + end + + def find_tag(*args) + find(*args).select{|t|!t.pending?} + end + +end -- libgit2 0.21.2