Sha256: b946451b6aa1ae22c9d2e9b5faa655b02641b214afe8102d8663e5df88667ff0

Contents?: true

Size: 514 Bytes

Versions: 115

Compression:

Stored size: 514 Bytes

Contents

#ifndef SASS_KWD_ARG_MACROS_H
#define SASS_KWD_ARG_MACROS_H

// 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:

#endif

Version data entries

115 entries across 97 versions & 21 rubygems

Version Path
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.3.0/gems/sassc-2.4.0/ext/libsass/src/kwd_arg_macros.hpp
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.1.0/gems/sassc-2.4.0/ext/libsass/src/kwd_arg_macros.hpp
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/sassc-2.4.0/ext/libsass/src/kwd_arg_macros.hpp
optimacms-0.1.61 spec/dummy/node_modules/@rails/webpacker/node_modules/node-sass/src/libsass/src/kwd_arg_macros.hpp
optimacms-0.1.61 spec/dummy/node_modules/node-sass/src/libsass/src/kwd_arg_macros.hpp
disco_app-0.18.0 test/dummy/node_modules/node-sass/src/libsass/src/kwd_arg_macros.hpp
disco_app-0.18.2 test/dummy/node_modules/node-sass/src/libsass/src/kwd_arg_macros.hpp
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/sassc-2.4.0/ext/libsass/src/kwd_arg_macros.hpp
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/sassc-2.4.0/ext/libsass/src/kwd_arg_macros.hpp
tang-0.2.1 spec/tang_app/node_modules/node-sass/src/libsass/src/kwd_arg_macros.hpp
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/node-sass/src/libsass/src/kwd_arg_macros.hpp
groonga-client-model-6.0.0 test/apps/rails6.0.3.5/node_modules/node-sass/src/libsass/src/kwd_arg_macros.hpp
ruby2js-4.0.4 lib/tasks/testrails/node_modules/node-sass/src/libsass/src/kwd_arg_macros.hpp
ruby2js-4.0.3 lib/tasks/testrails/node_modules/node-sass/src/libsass/src/kwd_arg_macros.hpp
tang-0.2.0 spec/tang_app/node_modules/node-sass/src/libsass/src/kwd_arg_macros.hpp
tang-0.1.0 spec/tang_app/node_modules/node-sass/src/libsass/src/kwd_arg_macros.hpp
tang-0.0.9 spec/tang_app/node_modules/node-sass/src/libsass/src/kwd_arg_macros.hpp
enju_library-0.3.8 spec/dummy/node_modules/node-sass/src/libsass/src/kwd_arg_macros.hpp
sassc-2.4.0 ext/libsass/src/kwd_arg_macros.hpp
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/sassc-2.0.0/ext/libsass/src/kwd_arg_macros.hpp