代码搜索:Automatically
找到约 10,000 项符合「Automatically」的源代码
代码结果 10,000
www.eeworm.com/read/275831/10793683
rb 01 - automatically generating documentation.rb
require 'rake/rdoctask'
Rake::RDocTask.new('rdoc') do |t|
t.rdoc_files.include('README', 'lib/**/*.rb')
t.main = 'README'
t.title = "MyLib API documentation"
end
#---
require 'rake/rdoctask'
R
www.eeworm.com/read/275831/10793686
rb 03 - automatically building a gem.rb
require 'rake/gempackagetask'
# Create a gem specification
gem_spec = Gem::Specification.new do |s|
s.name = 'docbook'
s.version = '1.0.0'
s.summary = 'DocBook formatting program and library.'
www.eeworm.com/read/275831/10794433
rb 08 - automatically initializing instance variables.rb
class RGBColor(red=0, green=0, blue=0)
@red = red
@green = green
@blue = blue
end
#---
class Object
private
def set_instance_variables(binding, *variables)
variables.each do |var|
www.eeworm.com/read/275831/10794556
rb 05 - automatically loading files as needed.rb
# functions.rb
module Decidable
# ... Many, many methods go here.
end
module Semidecidable
# ... Many, many methods go here.
end
#---
# functions.rb
autoload :Decidable, "decidable.rb"
autoload :
www.eeworm.com/read/275831/10793925
rb 13 - automatically discovering drb servers and clients.rb
#!/usr/bin/ruby
# rinda_server.rb
require 'rinda/ring' # for RingServer
require 'rinda/tuplespace' # for TupleSpace
DRb.start_service
# Create a TupleSpace to hold named services, and start
www.eeworm.com/read/275831/10794567
rb 08 - automatically initializing mixed-in modules.rb
class Class
def included_modules
@included_modules ||= []
end
alias_method :old_new, :new
def new(*args, &block)
obj = old_new(*args, &block)
self.included_modules.each do |mod|
www.eeworm.com/read/275831/10794053
rb 19 - automatically sending application errors to your email.rb
class ApplicationController < ActionController::Base
private
def log_error(exception)
super
Notification.deliver_error_message(exception,
clean_backtrace(exception),
s
www.eeworm.com/read/265711/11255898
htm arcgis server development blog zooming to task results automatically.htm
www.eeworm.com/read/152121/5675662
def ttf.def
; This file is part of the FreeType project.
; Automatically generated, but you can customize to fit your needs.
; However, changes will be erased if not made in `makedef'...
;
; This definition file
www.eeworm.com/read/152121/5675671
makedef
# makedef
#
# This shell script creates a .DEF file necessary for building as DLL
# on the Windows 32-bit platform.
echo "\
; This file is part of the FreeType project.
; Automatically generated, but