Class String
In: lib/html_encode.rb
lib/r_path.rb
lib/sym_tbl_gsub.rb
lib/text.rb
Parent: Object

Methods

Included Modules

HtmlEncode

Public Class methods

[Source]

# File lib/genpasswd.rb, line 20
def String.genpasswd(length=8)
  Genpasswd.new(length)
end

Public Instance methods

[Source]

# File lib/sym_tbl_gsub.rb, line 196
  def symtbl_gsub ( symtbl )
    return nil unless self =~ /<<.*>>/
    dup.symtbl_gsub! symtbl
  end

[Source]

# File lib/sym_tbl_gsub.rb, line 203
  def symtbl_gsub! ( symtbl )
    have_changed = nil
    while (
      gsub!(/<<([^<>]*)>>/) do
        s = symtbl[$1]
        have_changed ||= s
        (s.nil?)? "<#{@@tag}<#$1>#{@@tag}>" : s.symtbl_to_s
      end
    ) do
    end
    gsub! @@tag, ''
    return nil if have_changed.nil?
    self
  end

[Source]

# File lib/sym_tbl_gsub.rb, line 192
  def symtbl_to_s
    self
  end

[Source]

# File lib/text.rb, line 163
  def to_text ( *args, &block )
    Text.new(self, *args, &block)
  end

[Validate]