Sha256: f5486574596bfa139e56811a002487e39c948f5aedc95395e751880f243b841a

Contents?: true

Size: 274 Bytes

Versions: 77

Compression:

Stored size: 274 Bytes

Contents

class String
  # not Windows compatible 
  def to_file_path
    self.gsub(".", "/")
  end

  def to_page_title
    self.gsub("/", ".")
  end

  def short_page_title
    self.to_page_title.split('.')[1]
  end

  def namespace
    self.to_page_title.split('.')[0]
  end
end


Version data entries

77 entries across 77 versions & 1 rubygems

Version Path
soywiki-0.9.8.3 lib/string_ext.rb
soywiki-0.9.8.2 lib/string_ext.rb
soywiki-0.9.8.2.pre.2 lib/string_ext.rb
soywiki-0.9.8.2.pre.1 lib/string_ext.rb
soywiki-0.9.8.2.pre lib/string_ext.rb
soywiki-0.9.8.1 lib/string_ext.rb
soywiki-0.9.8 lib/string_ext.rb
soywiki-0.9.7 lib/string_ext.rb
soywiki-0.9.6 lib/string_ext.rb
soywiki-0.9.5 lib/string_ext.rb
soywiki-0.9.4 lib/string_ext.rb
soywiki-0.9.3 lib/string_ext.rb
soywiki-0.9.2 lib/string_ext.rb
soywiki-0.9.1 lib/string_ext.rb
soywiki-0.9.0 lib/string_ext.rb
soywiki-0.8.5 lib/string_ext.rb
soywiki-0.8.4 lib/string_ext.rb
soywiki-0.8.2 lib/string_ext.rb
soywiki-0.8.0 lib/string_ext.rb
soywiki-0.7.9 lib/string_ext.rb