334 | Index
logs
production Log Analyzer, 153
shipping, 123
lookup
methods, 5–17
delaying until runtime, 23
variables, 19
LTR (left-to-right) text, 238
M
m_tbl, 5
MAC (message authentication code), 134
Magic Multi-Connections gem, 118
maintenance, running automatically, 171
management
database management systems (DBMSs)
MySQL, 98
Oracle, 100
PostgreSQL, 97
SQL Server, 100
SQLite, 100
sessions, 176
uploads, 107
map method, 38
maps
object-relational mapping (ORM), 96
type, 193
Markaby, 282
Marshal module, 286
master-slave replication, 121
Slony-I, 123
mathematics, black-box analysis, 148
max method, 39
mean, 148
measurement tools, 148–155
black-box analysis, 148–151
code timing, 151–153
database performance, 171
query plans, 171–173
Rails, 153–155
member? method, 37
memcached daemon, 119, 175
MemCacheStore, 175, 179
MemoryStore, 174
Mercurial
branching and merging, 303
revision numbers, 305
Mercurial Queues (MQ) extension, 161
merging, 301–306
files, access, 298
message authentication code (MAC), 134
messages
error, security, 136
file control console, 69
hash message authentication code
(HMAC), 143
meta_def method, 18
meta_eval method, 18
metaclass method, 18
metaclasses
(see singleton classes)
metaid.rb library, 17
metaprogramming
(see programming)
metaprogramming techniques, 1–4
bindings, 27
continuations, 25–27
delaying method lookup until
runtime, 23
generative programming, 24
viewing methods at runtime, 28–36
method_missing function, 17, 23
methods, 20–23
alias_method, 34
application_backtrace, 66
Array
*, 46
extract, 61
in_groups_of, 61
pack, 46
rand, 61
split, 61
to_s, 61
to_sentence, 61
to_xml, 61
arrays, 46
attr_accessible, 132
attr_accessor, 276
attr_protected, 132
before_save callback, 130
chaining, 33
Class, const_missing, 57
class_def, 18
clean_backtrace, 66
clean_message, 66
collect, 38
delegate, 70
DELETE, 190
deprecate, 58
detect, 37
Dir, 47
each_with_index, 39
emulation, 217