projects
/
redact.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rake 0.5.0 or greater required.
[redact.git]
/
lib
/
redact
/
redact.rb
diff --git
a/lib/redact/redact.rb
b/lib/redact/redact.rb
index 59740f70f2f1e23b1477de9c3f6aec0b2cf102dc..499b7fdb64bfa705d138aaa5f10bb3f85cfd6f1b 100644
(file)
--- a/
lib/redact/redact.rb
+++ b/
lib/redact/redact.rb
@@
-1,5
+1,5
@@
#--
#--
-# $Id: redact.rb
1 2005-03-26 01:32:38
Z tilman $
+# $Id: redact.rb
6 2005-03-26 20:24:40
Z tilman $
#
# Copyright (c) 2005 Tilman Sauerbeck (tilman at code-monkey de)
#
#
# Copyright (c) 2005 Tilman Sauerbeck (tilman at code-monkey de)
#
@@
-27,7
+27,7
@@
require "imlib2"
require "redact/part"
require "redact/program"
require "redact/part"
require "redact/program"
-class Object
+class Object
# :nodoc:
undef :id
end
undef :id
end
@@
-57,7
+57,7
@@
class String
end
module Redact
end
module Redact
- VERSION = "0.
0.1
"
+ VERSION = "0.
1.0
"
class RedactError < StandardError; end
class RedactError < StandardError; end
@@
-84,7
+84,7
@@
module Redact
@data = DataHash.new
end
@data = DataHash.new
end
- def collection(name)
+ def collection(name)
# :yields: collection
c = @collections[name]
block_given? ? (yield c) : c
c = @collections[name]
block_given? ? (yield c) : c
@@
-105,7
+105,7
@@
module Redact
end
end
end
end
- class DataHash < Hash
+ class DataHash < Hash
# :nodoc:
def [](key)
super.value
end
def [](key)
super.value
end
@@
-115,7
+115,7
@@
module Redact
end
end
end
end
- class HashEntry
+ class HashEntry
# :nodoc:
attr_reader :key, :value
def initialize(key, value)
attr_reader :key, :value
def initialize(key, value)
@@
-128,7
+128,7
@@
module Redact
end
end
end
end
- class FontDirectory < Array
+ class FontDirectory < Array
# :nodoc:
def to_eet_name
"Edje_Font_Directory"
end
def to_eet_name
"Edje_Font_Directory"
end
@@
-138,7
+138,7
@@
module Redact
end
end
end
end
- class FontDirectoryEntry
+ class FontDirectoryEntry
# :nodoc:
attr_reader :filename
def initialize(filename)
attr_reader :filename
def initialize(filename)
@@
-154,7
+154,7
@@
module Redact
end
end
end
end
- class ImageDirectory < Array
+ class ImageDirectory < Array
# :nodoc:
def <<(entry)
super
def <<(entry)
super
@@
-170,7
+170,7
@@
module Redact
end
end
end
end
- class ImageDirectoryEntry
+ class ImageDirectoryEntry
# :nodoc:
attr_reader :filename, :image, :id
def initialize(filename)
attr_reader :filename, :image, :id
def initialize(filename)
@@
-203,7
+203,7
@@
module Redact
end
end
end
end
- class CollectionDirectory < Array
+ class CollectionDirectory < Array
# :nodoc:
def to_eet_name
"Edje_Part_Collection_Directory"
end
def to_eet_name
"Edje_Part_Collection_Directory"
end
@@
-213,7
+213,7
@@
module Redact
end
end
end
end
- class CollectionDirectoryEntry
+ class CollectionDirectoryEntry
# :nodoc:
def initialize(col)
@name = col.name.to_str.dup.freeze
@id = col.id
def initialize(col)
@name = col.name.to_str.dup.freeze
@id = col.id
@@
-247,7
+247,7
@@
module Redact
@script = nil
end
@script = nil
end
- def part(name, type = :invalid)
+ def part(name, type = :invalid)
# :yields: part
p = @parts[name]
if p.nil?
klass = case type
p = @parts[name]
if p.nil?
klass = case type
@@
-271,7
+271,7
@@
module Redact
block_given? ? (yield p) : p
end
block_given? ? (yield p) : p
end
- def program(name, type = :invalid)
+ def program(name, type = :invalid)
# :yields: program
p = @programs[name]
if p.nil?
klass = case type
p = @programs[name]
if p.nil?
klass = case type