Class RDtitle::RDchapterform
In: rdstyle.rb
Parent: Object

RDchapterform

チャプターのフォーム情報クラス RDtitle用クラスでユーザーが触る事は無い

Methods

change_title   new   postdata   set  

Attributes

target  [R] 

Public Class methods

初期化する

[Source]

# File rdstyle.rb, line 346
    def initialize(target)
      @target = target
      @value = Hash.new
      @sort = Hash.new
    end

Public Instance methods

タイトルを変更

[Source]

# File rdstyle.rb, line 368
    def change_title(newtitle)
      @value["titlename"] = newtitle
    end

ソート順に文字列化

[Source]

# File rdstyle.rb, line 359
    def postdata
      buf = ""
      @sort.to_a.sort{|a, b| a[1] <=> b[1]}.each do |name, pos|
        buf << format("%s=%s&", name, CGI.escape(@value[name]))
      end
      return buf.chop
    end

データをセットする

[Source]

# File rdstyle.rb, line 353
    def set(name, value, pos)
      @value[name] = value
      @sort[name] = pos
    end

[Validate]