Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/coderunner/interactive_methods.rb
Class Method Summary collapse
Class Method Details
.help(meth_or_const = nil) ⇒ Object
end
764 765 766 767 768 769 770 771 772 773 774 775 776 |
# File 'lib/coderunner/interactive_methods.rb', line 764 def self.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 |