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.5.6 lib/string_ext.rb
soywiki-0.5.5 lib/string_ext.rb
soywiki-0.5.4 lib/string_ext.rb
soywiki-0.5.3 lib/string_ext.rb
soywiki-0.5.2 lib/string_ext.rb
soywiki-0.5.1 lib/string_ext.rb
soywiki-0.5.0 lib/string_ext.rb
soywiki-0.4.9 lib/string_ext.rb
soywiki-0.4.8 lib/string_ext.rb
soywiki-0.4.7 lib/string_ext.rb
soywiki-0.4.6 lib/string_ext.rb
soywiki-0.4.5 lib/string_ext.rb
soywiki-0.4.4 lib/string_ext.rb
soywiki-0.4.3 lib/string_ext.rb
soywiki-0.4.2 lib/string_ext.rb
soywiki-0.4.1 lib/string_ext.rb
soywiki-0.4.0 lib/string_ext.rb
soywiki-0.3.9 lib/string_ext.rb
soywiki-0.3.8 lib/string_ext.rb
soywiki-0.3.7 lib/string_ext.rb