Module: DeclMethod
Instance Method Summary collapse
- #def_alias(from, to) ⇒ Object
- #def_alloc_func(m, erb_path = nil, **opts, &block) ⇒ Object
- #def_const(m, v, **opts, &block) ⇒ Object
- #def_method(m, erb_path = nil, **opts, &block) ⇒ Object
- #def_module_function(m, erb_path = nil, **opts, &block) ⇒ Object
- #def_singleton_method(m, erb_path = nil, **opts, &block) ⇒ Object
- #undef_alloc_func ⇒ Object
- #undef_method(m) ⇒ Object
- #undef_singleton_method(m) ⇒ Object
Instance Method Details
#def_alias(from, to) ⇒ Object
155 156 157 |
# File 'ext/numo/narray/gen/erbpp2.rb', line 155 def def_alias(from, to) DefAlias.new(self, from:from, to:to) end |
#def_alloc_func(m, erb_path = nil, **opts, &block) ⇒ Object
134 135 136 |
# File 'ext/numo/narray/gen/erbpp2.rb', line 134 def def_alloc_func(m, erb_path=nil, **opts, &block) DefAllocFunc.new(self, erb_path||m, name:m, singleton:true, **opts, &block) end |
#def_const(m, v, **opts, &block) ⇒ Object
158 159 160 |
# File 'ext/numo/narray/gen/erbpp2.rb', line 158 def def_const(m, v, **opts, &block) DefConst.new(self, name:m, value:v, **opts, &block) end |
#def_method(m, erb_path = nil, **opts, &block) ⇒ Object
140 141 142 |
# File 'ext/numo/narray/gen/erbpp2.rb', line 140 def def_method(m, erb_path=nil, **opts, &block) DefMethod.new(self, erb_path||m, name:m, **opts, &block) end |
#def_module_function(m, erb_path = nil, **opts, &block) ⇒ Object
152 153 154 |
# File 'ext/numo/narray/gen/erbpp2.rb', line 152 def def_module_function(m, erb_path=nil, **opts, &block) DefModuleFunction.new(self, erb_path||m, name:m, **opts, &block) end |
#def_singleton_method(m, erb_path = nil, **opts, &block) ⇒ Object
146 147 148 |
# File 'ext/numo/narray/gen/erbpp2.rb', line 146 def def_singleton_method(m, erb_path=nil, **opts, &block) DefMethod.new(self, erb_path||m, name:m, singleton:true, **opts, &block) end |
#undef_alloc_func ⇒ Object
137 138 139 |
# File 'ext/numo/narray/gen/erbpp2.rb', line 137 def undef_alloc_func UndefAllocFunc.new(self) end |
#undef_method(m) ⇒ Object
143 144 145 |
# File 'ext/numo/narray/gen/erbpp2.rb', line 143 def undef_method(m) UndefMethod.new(self,name:m) end |
#undef_singleton_method(m) ⇒ Object
149 150 151 |
# File 'ext/numo/narray/gen/erbpp2.rb', line 149 def undef_singleton_method(m) UndefSingletonMethod.new(self,name:m) end |