tab: add missing methods

This makes `Tab` compatible with `BuildOptions`.
This commit is contained in:
Xu Cheng 2016-07-15 15:12:05 +08:00
parent c021f37525
commit 30bbb93f21
No known key found for this signature in database
GPG Key ID: C2A3860FA0B459CE

View File

@ -179,6 +179,18 @@ class Tab < OpenStruct
include?("32-bit") include?("32-bit")
end end
def head?
spec == :head
end
def devel?
spec == :devel
end
def stable?
spec == :stable
end
def used_options def used_options
Options.create(super) Options.create(super)
end end