Changeset 212
- Timestamp:
- 09/23/2007 17:17:58 (14 months ago)
- Location:
- trunk
- Files:
-
- 3 modified
-
Rakefile (modified) (1 diff)
-
lib/camping-unabridged.rb (modified) (1 diff)
-
lib/camping.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Rakefile
r203 r212 132 132 desc "Compare camping sizes to unabridged" 133 133 task :size do 134 size = File.size("lib/camping-unabridged.rb")135 134 FileList["lib/camping*.rb"].each do |path| 136 135 s = File.size(path) 137 puts "%21s : % 6d % 4d%" % [File.basename(path), s, (100 * s / size)]136 puts "%21s : % 6d % 4d%" % [File.basename(path), s, (100 * s / SIZE_LIMIT)] 138 137 end 139 138 if File.size("lib/camping.rb") > SIZE_LIMIT -
trunk/lib/camping-unabridged.rb
r211 r212 128 128 # 129 129 def method_missing(m,*a) 130 m.to_s=~/=$/?self[$`]=a[0]:a==[]?self[m]: raise(NoMethodError,"#{m}")130 m.to_s=~/=$/?self[$`]=a[0]:a==[]?self[m]:super 131 131 end 132 132 alias_method :u, :regular_update -
trunk/lib/camping.rb
r211 r212 51 51 Markaby::Builder;include Views;def tag!*g,&b;h=g[-1];[:href,:action,:src].map{ 52 52 |a|(h[a]=self/h[a])rescue 0};super end end;H=HashWithIndifferentAccess;class H 53 def method_missing m,*a;m.to_s=~/=$/?self[$`]=a[0]:a==[]?self[m]: raise(54 NoMethodError,"#{m}")end;alias_method:u,:regular_update;end end53 def method_missing m,*a;m.to_s=~/=$/?self[$`]=a[0]:a==[]?self[m]:super end 54 alias_method:u,:regular_update;end end
