Method: EasyInstaller::Validator#import_from_config_by_method
- Defined in:
- lib/easy_installer/validator.rb
#import_from_config_by_method(method) ⇒ Object
Automaticaly imports validation function from config by method
Attributes
* +method+ - String : name of method
40 41 42 43 44 45 46 |
# File 'lib/easy_installer/validator.rb', line 40 def import_from_config_by_method(method) @method = method sandbox = Sandbox.new @config.validating_code(method) sandbox.modules << ValidatorHelper sandbox.eval @checking_functions = sandbox.returned_raw end |