Class: Module
Instance Method Summary collapse
Instance Method Details
#help(meth_or_const = nil) ⇒ Object
763 764 765 766 767 768 769 770 771 772 773 774 775 |
# File 'lib/coderunner/interactive_methods.rb', line 763 def help(meth_or_const=nil) join = "" if meth_or_const if self.constants.include? meth_or_const.to_sym join = "::" elsif self.methods.include? meth_or_const.to_sym join = "." elsif self.instance_methods.include? meth_or_const.to_sym join = "#" end end CodeRunner.reference("#{self.to_s}#{join}#{meth_or_const}") end |