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
167 168 169 |
# File 'ext/cumo/narray/gen/erbpp2.rb', line 167 def def_alias(from, to) DefAlias.new(self, from:from, to:to) end |
#def_alloc_func(m, erb_path = nil, **opts, &block) ⇒ Object
146 147 148 |
# File 'ext/cumo/narray/gen/erbpp2.rb', line 146 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
170 171 172 |
# File 'ext/cumo/narray/gen/erbpp2.rb', line 170 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
152 153 154 |
# File 'ext/cumo/narray/gen/erbpp2.rb', line 152 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
164 165 166 |
# File 'ext/cumo/narray/gen/erbpp2.rb', line 164 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
158 159 160 |
# File 'ext/cumo/narray/gen/erbpp2.rb', line 158 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
149 150 151 |
# File 'ext/cumo/narray/gen/erbpp2.rb', line 149 def undef_alloc_func UndefAllocFunc.new(self) end |
#undef_method(m) ⇒ Object
155 156 157 |
# File 'ext/cumo/narray/gen/erbpp2.rb', line 155 def undef_method(m) UndefMethod.new(self,name:m) end |
#undef_singleton_method(m) ⇒ Object
161 162 163 |
# File 'ext/cumo/narray/gen/erbpp2.rb', line 161 def undef_singleton_method(m) UndefSingletonMethod.new(self,name:m) end |