class Rake::Delphi::ProjectVersionInfo

Public Class Methods

new(task) click to toggle source
# File lib/rake/delphi/projectinfo.rb, line 9
def initialize(task)
    @info = Hash.new
    @file = task.systempath.pathmap('%X.' + self._ext)
    do_getcontent
end

Public Instance Methods

[](key) click to toggle source
# File lib/rake/delphi/projectinfo.rb, line 23
def [](key)
    @info[key.to_sym]
end
_ext() click to toggle source
# File lib/rake/delphi/projectinfo.rb, line 19
def _ext
    ''
end
do_getcontent() click to toggle source
# File lib/rake/delphi/projectinfo.rb, line 15
def do_getcontent
    @content = nil
end
method_missing(name, *args, &block) click to toggle source
# File lib/rake/delphi/projectinfo.rb, line 27
def method_missing(name, *args, &block)
    @info[name].gsub('"', '""') if @info[name]
end