class Object
Public Class Methods
docs(method_name=nil)
click to toggle source
# File lib/motion-docs/monkeypatching.rb, line 3 def self.docs(method_name=nil) subject = self.to_s if method_name subject << "." unless method_name.start_with?("#") || method_name.start_with?(".") subject << method_name.to_s end puts MotionDocs.new(subject).help end
ri(m=nil)
click to toggle source
# File lib/motion-docs/monkeypatching.rb, line 11 def self.ri(m=nil); docs(m); end