Sha256: bfd48316f56914a4a00c13139dd9390b68352b26f2221dfcc046f9a515b03f4f
Contents?: true
Size: 445 Bytes
Versions: 8
Compression:
Stored size: 445 Bytes
Contents
// Example usage: // KWD_ARG_SET(Args) { // KWD_ARG(Args, string, foo); // KWD_ARG(Args, int, bar); // ... // }; // // ... and later ... // // something(Args().foo("hey").bar(3)); #define KWD_ARG_SET(set_name) class set_name #define KWD_ARG(set_name, type, name) \ private: \ type name##_; \ public: \ set_name& name(type name##__) { \ name##_ = name##__; \ return *this; \ } \ type name() { return name##_; } \ private:
Version data entries
8 entries across 8 versions & 1 rubygems