Parent

Rake::BaseExtensionTask

Attributes

name[RW]
gem_spec[RW]
tmp_dir[RW]
ext_dir[RW]
lib_dir[RW]
platform[RW]
config_options[RW]
source_pattern[RW]

Public Class Methods

new(name = nil, gem_spec = nil) click to toggle source
    # File lib/rake/baseextensiontask.rb, line 28
28:     def initialize(name = nil, gem_spec = nil)
29:       init(name, gem_spec)
30:       yield self if block_given?
31:       define
32:     end

Public Instance Methods

define() click to toggle source
    # File lib/rake/baseextensiontask.rb, line 43
43:     def define
44:       fail "Extension name must be provided." if @name.nil?
45: 
46:       define_compile_tasks
47:     end
init(name = nil, gem_spec = nil) click to toggle source
    # File lib/rake/baseextensiontask.rb, line 34
34:     def init(name = nil, gem_spec = nil)
35:       @name = name
36:       @gem_spec = gem_spec
37:       @tmp_dir = 'tmp'
38:       @ext_dir = "ext/#{@name}"
39:       @lib_dir = 'lib'
40:       @config_options = []
41:     end
platform() click to toggle source
    # File lib/rake/baseextensiontask.rb, line 24
24:     def platform
25:       @platform ||= RUBY_PLATFORM
26:     end

Private Instance Methods

binary(platform = nil) click to toggle source
    # File lib/rake/baseextensiontask.rb, line 55
55:     def binary(platform = nil)
56:       ext = case platform
57:         when /darwin/
58:           'bundle'
59:         when /mingw|mswin|linux/
60:           'so'
61:         when /java/
62:           'jar'
63:         else
64:           RbConfig::CONFIG['DLEXT']
65:       end
66:       "#{@name}.#{ext}"
67:     end
define_compile_tasks() click to toggle source
    # File lib/rake/baseextensiontask.rb, line 51
51:     def define_compile_tasks
52:       raise NotImplementedError
53:     end
source_files() click to toggle source
    # File lib/rake/baseextensiontask.rb, line 69
69:     def source_files
70:       @source_files ||= FileList["#{@ext_dir}/#{@source_pattern}"]
71:     end
warn_once(message) click to toggle source
    # File lib/rake/baseextensiontask.rb, line 73
73:     def warn_once(message)
74:       @@already_warned ||= false
75:       return if @@already_warned
76:       @@already_warned = true
77:       warn message
78:     end
windows?() click to toggle source
    # File lib/rake/baseextensiontask.rb, line 80
80:     def windows?
81:       Rake.application.windows?
82:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.