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
746 747 748 749 750 751 752 753 754 755 756 757 758 |
# File 'lib/coderunner/interactive_methods.rb', line 746 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 |