Sha256: 802336d43240ac40c9ec0110dc566506fa1e154efda386c798805e09951a2b42

Contents?: true

Size: 497 Bytes

Versions: 38

Compression:

Stored size: 497 Bytes

Contents

#ifndef Rice__detail__Wrapped_Function__hpp_
#define Rice__detail__Wrapped_Function__hpp_

#include "ruby.hpp"

namespace Rice
{

namespace detail
{

class Wrapped_Function
{
public:
  Wrapped_Function(RUBY_METHOD_FUNC func, int arity)
    : func_(func)
    , arity_(arity)
  {
  }

  RUBY_METHOD_FUNC func() const { return func_; }
  int arity() const { return arity_; }

private:
  RUBY_METHOD_FUNC func_;
  int arity_;
};

} // detail

} // Rice

#endif // Rice__detail__Wrapped_Function__hpp_

Version data entries

38 entries across 38 versions & 6 rubygems

Version Path
rice-3.0.0 rice/detail/Wrapped_Function.hpp
rice2-2.2.1 rice/detail/Wrapped_Function.hpp
rice2-2.2.0 rice/detail/Wrapped_Function.hpp
rice-2.2.0 rice/detail/Wrapped_Function.hpp
rice-2.1.3 rice/detail/Wrapped_Function.hpp
rice-2.1.2 rice/detail/Wrapped_Function.hpp
rice-2.1.1 rice/detail/Wrapped_Function.hpp
rice-2.1.0 rice/detail/Wrapped_Function.hpp
rice-2.0.0 rice/detail/Wrapped_Function.hpp
rice-1.7.0 rice/detail/Wrapped_Function.hpp
rice-1.6.3 rice/detail/Wrapped_Function.hpp
jameskilton-rice-1.2.0 rice/detail/Wrapped_Function.hpp
rice-1.6.2 rice/detail/Wrapped_Function.hpp
rice-1.6.1 rice/detail/Wrapped_Function.hpp
rice-1.6.0 rice/detail/Wrapped_Function.hpp
rice-1.6.0.pre rice/detail/Wrapped_Function.hpp
rice-1.5.3 rice/detail/Wrapped_Function.hpp
rice-1.5.2 rice/detail/Wrapped_Function.hpp
keyme-rice-1.5.1.keyme1 rice/detail/Wrapped_Function.hpp
keyme-rice-1.5.1.keyme rice/detail/Wrapped_Function.hpp