Method: WGU::Sentence#with_clause
- Defined in:
- lib/pps_commons/sentence.rb
#with_clause ⇒ Object
172 173 174 175 176 177 178 179 180 181 182 183 |
# File 'lib/pps_commons/sentence.rb', line 172 def with_clause return '' unless =~ /with/ msg = .gsub(/.+with\s(.+)$/, '\1') if request? msg else # pop the response status off, when dealing with a response tmp = msg.split(' ') tmp.pop tmp.join(' ').strip end end |