Class: DefaultDisplay

Inherits:
Object
  • Object
show all
Defined in:
lib/fastri/ri_service.rb

Direct Known Subclasses

FastRI::StringRedirectedDisplay

Instance Method Summary collapse

Instance Method Details

#full_params(method) ⇒ Object



17
18
19
20
21
22
23
24
25
26
# File 'lib/fastri/ri_service.rb', line 17

def full_params(method)
  method.params.split(/\n/).each do |p|
    p.sub!(/^#{method.name}\(/o,'(')
    unless p =~ /\b\.\b/
      p = method.full_name + p
    end
    @formatter.wrap(p) 
    @formatter.break_to_newline
  end
end