Method: Array#rwd_method

Defined in:
lib/rwd/rwd.rb

#rwd_method(method) ⇒ Object



120
121
122
123
124
125
126
127
128
129
130
131
# File 'lib/rwd/rwd.rb', line 120

def rwd_method(method)
  res = ""

  self.each do |s|
    s   = s.join("/")  if s.kind_of?(Array)
    s2  = s.dup
    s2[0..0]  = s2[0..0].upcase
    res = res + "<p align='left'><a action='#{method}/#{s.to_html}'>#{s2.to_html}</a></p>"
  end

  return res
end