Class: DefSys
- Inherits:
-
DefGslModule
- Object
- ErbPP
- DefModule
- DefGslModule
- DefSys
- Defined in:
- ext/numo/gsl/sys/erbpp_sys.rb
Instance Attribute Summary
Attributes inherited from ErbPP
Instance Method Summary collapse
Methods inherited from DefGslModule
Methods included from ErbppGsl
FM, dbl, dblp, int, intp, long, read_const, read_enum, read_eval, read_func, read_func_pattern, read_type, str, szt, sztp, tp, uint, ulong, void
Methods inherited from DefModule
#_mod_var, #def_id, #id_list, #init_def, #init_erb, #initialize, #method_code
Methods included from DeclMethod
#def_alias, #def_alloc_func, #def_const, #def_method, #def_module_function, #def_singleton_method, #undef_alloc_func, #undef_method, #undef_singleton_method
Methods inherited from ErbPP
#add_child, #description, #find, #find_tmpl, #get, #init_def, #initialize, #load_erb, #method_missing, #method_missing_alias, #result, #run, #set, #write
Constructor Details
This class inherits a constructor from DefModule
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ErbPP
Instance Method Details
#lookup(h) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'ext/numo/gsl/sys/erbpp_sys.rb', line 8 def lookup(h) case h when FM(dbl, type:int); "m_Int_f_DFloat" when FM(*[dbl]*3, type:int); "m_Int_f_DFloat_x3" # gsl_fcmp when FM(dbl, type:dbl); "m_DFloat_f_DFloat" when FM(*[dbl]*2, type:dbl); "m_DFloat_f_DFloat_x2" when FM(*[dbl]*3, type:dbl); "m_DFloat_f_DFloat_x3" when FM(int, type:dbl); "m_DFloat_f_Int" when FM(dbl,int, type:dbl); "m_DFloat_f_DFloat_Int" when FM(dbl,uint, type:dbl); "m_DFloat_f_DFloat_UInt" when FM(dbl,intp, type:dbl); "m_DFloat_Int_f_DFloat" # gsl_frexp end end |
#to_method_name(s) ⇒ Object
22 23 24 |
# File 'ext/numo/gsl/sys/erbpp_sys.rb', line 22 def to_method_name(s) s.sub(/^gsl_/,"") end |