class Rake::Delphi::RCTemplate
Attributes
codepage[R]
filetype[R]
lang[R]
language[R]
sublanguage[R]
Public Class Methods
new(owner)
click to toggle source
# File lib/rake/delphi/resources.rb, line 17 def initialize(owner) raise 'RCTemplateTask owner is expected' unless owner.kind_of?(RCTemplateTask) @owner = owner # English @language = '0x19' @sublanguage = '0x01' # Russian @lang = '0419' # Russian @codepage = '04E3' # exe @filetype = '0x1' @versioninfo = nil @extra = {} @main_owner_task_name = @owner.name.gsub(/:rc:template$/, '') @main_owner_task = nil end
Public Instance Methods
[]=(key, value)
click to toggle source
# File lib/rake/delphi/resources.rb, line 60 def []=(key, value) @extra[key] = value || '' end
get_binding()
click to toggle source
# File lib/rake/delphi/resources.rb, line 35 def get_binding binding end
main_owner_task()
click to toggle source
# File lib/rake/delphi/resources.rb, line 39 def main_owner_task @main_owner_task ||= @owner.application[@main_owner_task_name] end
mainicon()
click to toggle source
# File lib/rake/delphi/resources.rb, line 43 def mainicon # take dcc33 task return main_owner_task.mainicon end
method_missing(name, *args, &block)
click to toggle source
# File lib/rake/delphi/resources.rb, line 64 def method_missing(name, *args, &block) if args.empty? && @extra[name] @extra[name] elsif @source @source.name else raise 'No key :%s' % name.to_s end end
Also aliased as: method_missing_base
product()
click to toggle source
# File lib/rake/delphi/resources.rb, line 56 def product Gem::VersionImproved.new(self.versioninfo['ProductVersion']) end
version()
click to toggle source
# File lib/rake/delphi/resources.rb, line 48 def version Gem::VersionImproved.new(@extra[:version]) end
versioninfo()
click to toggle source
# File lib/rake/delphi/resources.rb, line 52 def versioninfo @versioninfo ||= main_owner_task.createVersionInfo end