Module: URI
- Defined in:
- plugins/crawler/lib/uri_mp.rb
Overview
. uri_mp.rb
Copyright 2013 by siberas, www.siberas.de
This file is part of WATOBO (Web Application Tool Box)
http://watobo.sourceforge.com
WATOBO is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation version 2 of the License.
WATOBO is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with WATOBO; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA .
Instance Method Summary collapse
-
#path_mp ⇒ Object
path ( Monkey Patched ).
- #site ⇒ Object
Instance Method Details
#path_mp ⇒ Object
path ( Monkey Patched )
28 29 30 31 32 |
# File 'plugins/crawler/lib/uri_mp.rb', line 28 def path_mp #p = self.path self.path.gsub(/\/[^\/]*$/,'/') end |
#site ⇒ Object
23 24 25 |
# File 'plugins/crawler/lib/uri_mp.rb', line 23 def site "#{self.host}:#{self.port}" end |