All Projects → maxim → kwstruct

maxim / kwstruct

Licence: MIT License
Struct with keyword arguments support

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to kwstruct

icpc
Resources for Competitive Programming
Stars: ✭ 14 (-17.65%)
Mutual labels:  datastructures
cli
Autocode CLI and standard library tooling
Stars: ✭ 3,791 (+22200%)
Mutual labels:  stdlib
datastructures-and-algorithms
Repository for studying/practicing Data Structures, Algorithms and Code Interview Problems.
Stars: ✭ 30 (+76.47%)
Mutual labels:  datastructures
Data-Structures-and-Algorithms--A-Comprehensive-Guide
Data Structures & Algorithms - A Comprehensive Guide
Stars: ✭ 15 (-11.76%)
Mutual labels:  datastructures
AlgorithmSet
LeetCode 算法练习集合 ~ 每天一道算法题
Stars: ✭ 19 (+11.76%)
Mutual labels:  datastructures
Python Scripts
It contains all the Python Programs, whether it's a GUI, basic, Data Structures, etc. It's a collection of some great Python scripts from basic to advance levels for automating some monotonous tasks.
Stars: ✭ 23 (+35.29%)
Mutual labels:  datastructures
Hackerrank
This repo contain all the problems of hackerrank
Stars: ✭ 40 (+135.29%)
Mutual labels:  datastructures
TUMGAD
Exercise generator and helpful materials for the Introduction to Algorithms and Data Structures 📚
Stars: ✭ 27 (+58.82%)
Mutual labels:  datastructures
stdlib
🎁 Gleam's standard library
Stars: ✭ 153 (+800%)
Mutual labels:  stdlib
Objective-CPP
C++ compatibility library for Objective-C - Objective-CPP is a library intended to ease software development using Objective-C++. It declares categories on Objective-C classes, to work with the STL C++ types, such as std::string, std::vector, etc.
Stars: ✭ 37 (+117.65%)
Mutual labels:  stdlib
Programacion-Competitiva
Material de programación competitiva elaborado por el Grupo de Programación Competitiva UNI (GPC-UNI)
Stars: ✭ 23 (+35.29%)
Mutual labels:  datastructures
Algorithms
Data Structures & Algorithms. Includes solutions for Cracking the Coding Interview 6th Edition
Stars: ✭ 89 (+423.53%)
Mutual labels:  datastructures
preface
Preface is an opinionated library designed to facilitate the handling of recurring functional programming idioms in OCaml.
Stars: ✭ 116 (+582.35%)
Mutual labels:  stdlib
treebitmap
Fast IP lookup table for IPv4/IPv6 prefixes
Stars: ✭ 81 (+376.47%)
Mutual labels:  datastructures
bloomfilter
Simplistic (but fast) java implementation of a bloom filter.
Stars: ✭ 35 (+105.88%)
Mutual labels:  datastructures
Problem-Solving
contains all coding interview practice problems, data structures and algorithms implementations. 👨‍💻👨‍💻💥 🚩
Stars: ✭ 14 (-17.65%)
Mutual labels:  datastructures
Joy-of-Computing-using-Python-NPTEL
Joy of computing using Python NPTEL Course Assignment Solutions
Stars: ✭ 22 (+29.41%)
Mutual labels:  datastructures
RedQuarkTutorials
Code used in all my tutorials on my website - redquark.org
Stars: ✭ 27 (+58.82%)
Mutual labels:  datastructures
Julia
Algorithms implemented in the Julia programming language. We're collaborating with the Humans of Julia community!
Stars: ✭ 216 (+1170.59%)
Mutual labels:  datastructures
borax
📓 Python3工具集合库——中国农历/中文数字/设计模式/树形结构
Stars: ✭ 57 (+235.29%)
Mutual labels:  datastructures

kwstruct

Just like regular Struct, but uses keyword arguments.

Person = KwStruct.new(:name, :age)
sammy = Person.new(name: 'Sammy', age: 30)

Any non-existent arguments will raise an ArgumentError.

Installation

$ gem install kwstruct

Credits

Thanks @apeiros for ideas.
Thanks @bughit for hitting a bug.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].