Class Method Details

.__clean_scope__ ⇒ Object

55
56
57
58
59
60
61

# File 'lib/wlang/hosted_language.rb', line 55def__clean_scope__# Removes all methods that are not needed to the class
(instance_methods+private_instance_methods).eachdo|m|m_to_s=m.to_sundef_method(m_to_s.to_sym)unless('__'==m_to_s[0..1])orKEPT_METHODS.include?(m_to_s)endend