~ubuntu-branches/ubuntu/wily/ctioga2/wily

« back to all changes in this revision

Viewing changes to lib/ctioga2/graphics/types/location.rb

  • Committer: Package Import Robot
  • Author(s): Vincent Fourmond
  • Date: 2013-07-08 20:58:17 UTC
  • mfrom: (6.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20130708205817-cephnc6etndyxrrp
Tags: 0.4-2
* Upload to unstable
* Already conforms to newer standards

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
module CTioga2
18
18
 
19
 
  Version::register_svn_info('$Revision: 223 $', '$Date: 2011-01-11 01:07:48 +0100 (Tue, 11 Jan 2011) $')
 
19
  Version::register_svn_info('$Revision: 360 $', '$Date: 2012-12-26 11:09:11 +0100 (Wed, 26 Dec 2012) $')
20
20
 
21
21
  module Graphics
22
22
 
199
199
        #
200
200
        # So far, no real parsing
201
201
        def self.from_text(str)
202
 
          str.gsub!(/-/,"_")
 
202
          str = str.gsub(/-/,"_") # Avoid problems with frozen strings
203
203
          return PlotLocation.new(str.to_sym)
204
204
        end
205
205