aboutsummaryrefslogtreecommitdiff
path: root/ruby
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-12-04 23:25:05 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-12-04 23:25:05 +0000
commit8a2209af5322271d8741d8add2f9f965b30a6455 (patch)
treec1ca8dcf2c152223d610b43f19d6925d69d2f920 /ruby
parentcd3a942035f61f0d42b743698209236c83747e78 (diff)
downloadpaludis-8a2209af5322271d8741d8add2f9f965b30a6455.tar.gz
paludis-8a2209af5322271d8741d8add2f9f965b30a6455.tar.xz
MetadataSpecTreeKey<RequiredUseSpecTree>
Diffstat (limited to 'ruby')
-rw-r--r--ruby/metadata_key.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/ruby/metadata_key.cc b/ruby/metadata_key.cc
index ed80d3639..874521215 100644
--- a/ruby/metadata_key.cc
+++ b/ruby/metadata_key.cc
@@ -57,6 +57,7 @@ namespace
static VALUE c_metadata_simple_uri_spec_tree_key;
static VALUE c_metadata_dependency_spec_tree_key;
static VALUE c_metadata_plain_text_spec_tree_key;
+ static VALUE c_metadata_required_use_spec_tree_key;
static VALUE c_repository_mask_info;
static VALUE c_metadata_section_key;
@@ -231,6 +232,12 @@ namespace
new std::shared_ptr<const MetadataKey>(mm));
}
+ void visit(const MetadataSpecTreeKey<RequiredUseSpecTree> &)
+ {
+ value = Data_Wrap_Struct(c_metadata_required_use_spec_tree_key, 0, &Common<std::shared_ptr<const MetadataKey> >::free,
+ new std::shared_ptr<const MetadataKey>(mm));
+ }
+
void visit(const MetadataSpecTreeKey<FetchableURISpecTree> &)
{
value = Data_Wrap_Struct(c_metadata_fetchable_uri_spec_tree_key, 0, &Common<std::shared_ptr<const MetadataKey> >::free,
@@ -848,6 +855,14 @@ namespace
rb_define_method(c_metadata_plain_text_spec_tree_key, "value", RUBY_FUNC_CAST((&SpecTreeValue<PlainTextSpecTree>::fetch)), 0);
/*
+ * Document-class: Paludis::MetadataRequiredUseSpecTreeKey
+ *
+ * Metadata class for restrict specs.
+ */
+ c_metadata_required_use_spec_tree_key = rb_define_class_under(paludis_module(), "MetadataRequiredUseSpecTreeKey", c_metadata_key);
+ rb_define_method(c_metadata_required_use_spec_tree_key, "value", RUBY_FUNC_CAST((&SpecTreeValue<RequiredUseSpecTree>::fetch)), 0);
+
+ /*
* Document-class: Paludis::MetadataDependencySpecTreeKey
*
* Metadata class for dependency specs.