Skip to content

Commit

Permalink
some little improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudhead committed Oct 16, 2009
1 parent 19f822d commit 4f11d9e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
4 changes: 4 additions & 0 deletions lib/mutter.rb
Expand Up @@ -51,6 +51,10 @@ def self.stylize *args
new.stylize *args
end

def self.process *args
new.process *args
end

def self.new *args
Mutterer.new(*args)
end
Expand Down
13 changes: 7 additions & 6 deletions lib/mutter/mutterer.rb
Expand Up @@ -44,12 +44,13 @@ def styles

def clear opt = :all
case opt
when :user then @styles = {}
when :default then @defaults = {}
when :styles then @styles, @defaults = {}, {}
when :active then @active = []
when :all then @active, @styles, @defaults = [], {}, {}
else raise ArgumentError, "[:user, :default, :active, :all] only"
when :user then @styles = {}
when :styles then @styles, @defaults = {}, {}
when :active then @active = []
when :all then @active, @styles, @defaults = [], {}, {}
when :default,
:defaults then @defaults = {}
else raise ArgumentError, "[:user, :default, :active, :all] only"
end
self
end
Expand Down

0 comments on commit 4f11d9e

Please sign in to comment.