Method: KRPC::Doc::SuffixMethods#method_missing

Defined in:
lib/krpc/doc.rb

#method_missing(method, *args, &block) ⇒ Object



169
170
171
172
173
174
175
176
177
# File 'lib/krpc/doc.rb', line 169

def method_missing(method, *args, &block)
  if DOCSTRING_SUFFIX_REGEX =~ method.to_s
    documented_method_name = $1 + $2.to_s
    if respond_to? documented_method_name.to_sym
      return puts Doc.docstring_for_method(self,documented_method_name)
    end
  end
  super
end