Method: Jets::PolyFun#check_private_method!
- Defined in:
- lib/jets/poly_fun.rb
#check_private_method! ⇒ Object
75 76 77 78 79 80 |
# File 'lib/jets/poly_fun.rb', line 75 def check_private_method! private_detected = @app_class.all_private_tasks.keys.include?(@app_meth) return unless private_detected # Ok to continue raise "The #{@app_class}##{@app_meth} is a private method. Unable to call it unless it is public" end |