Sha256: 96c23fec6357feb5e16c288827b97b49a9584a5f410cadabb946b43c9f9d5991
Contents?: true
Size: 524 Bytes
Versions: 2
Compression:
Stored size: 524 Bytes
Contents
module RbGCCXML class Function < Node # Always true for functions, false for methods def static? !cache[:as_method] end # Sets this function to be an instance method. # Useful for custom function declaration. def as_instance_method cache[:as_method] = true self end # Are we wrapping this function as an instance method? def as_instance_method? !!cache[:as_method] end # For Class#needs_director? def purely_virtual? false end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rbplusplus-0.9.1 | lib/rbplusplus/transformers/function.rb |
rbplusplus-0.9 | lib/rbplusplus/transformers/function.rb |