From 6a67fe3830356fb74a42cd72b0187c836172584b Mon Sep 17 00:00:00 2001 From: Yan Abu Arab Date: Sat, 20 Dec 2025 02:20:36 +0200 Subject: gnu: Add ruby-ostruct. * gnu/packages/ruby-xyz.scm (ruby-ostruct): New variable. Change-Id: Id3aeac1448ea8eea2dc2d18f1f9948695b45a128 Signed-off-by: Steve George --- gnu/packages/ruby-xyz.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'gnu') diff --git a/gnu/packages/ruby-xyz.scm b/gnu/packages/ruby-xyz.scm index 4d9e6096a4d..e5f4ff44b30 100644 --- a/gnu/packages/ruby-xyz.scm +++ b/gnu/packages/ruby-xyz.scm @@ -427,6 +427,30 @@ modules can be included into each other modules and saving all chain, including (home-page "https://github.com/AlexWayfer/module_methods") (license license:expat))) +(define-public ruby-ostruct + (package + (name "ruby-ostruct") + (version "0.6.3") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "ostruct" version)) + (sha256 + (base32 "04nrir9wdpc4izqwqbysxyly8y7hsfr4fsv69rw91lfi9d5fv8lm")))) + (arguments + (list + ;; no tests + #:tests? #f)) + (build-system ruby-build-system) + (synopsis "Class to build custom data structures, similar to a Hash") + (description + "An OpenStruct is a data structure, similar to a Hash, that +allows the definition of arbitrary attributes with their accompanying values. +This is accomplished by using Ruby's metaprogramming to define methods on the +class itself.") + (home-page "https://github.com/ruby/ostruct") + (license (list license:bsd-2)))) + (define-public ruby-rsync (package (name "ruby-rsync") -- cgit v1.2.3