Class: DefSf
Instance Attribute Summary
Attributes inherited from ErbPP
Instance Method Summary collapse
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
#check_func(h) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'ext/numo/gsl/sf/parse_sf.rb', line 5 def check_func(h) if /These functions are now deprecated/m =~ h[:desc] $stderr.puts "depricated: #{h[:func_name]}" return false end if /This function is now deprecated/m =~ h[:desc] $stderr.puts "depricated: #{h[:func_name]}" return false end [ LegendreArray, MathieuArray, BesselArray, CoulombArray, GegenpolyArray, SfTemplate, SfBasic ].each do |c| if tmpl = c.lookup(h) c.new(self, tmpl, **h) return true end end $stderr.puts "skip #{h[:func_type]} #{h[:func_name]} #{h[:args].inspect}" false end |