alpha sorting methods

This commit is contained in:
Wesley Beary 2009-11-30 17:01:42 -08:00
parent a8cc55e75c
commit 66c0bd3e51
1 changed files with 8 additions and 8 deletions

View File

@ -5,6 +5,14 @@ module Fog
new(Marshal.load(marshalled)) new(Marshal.load(marshalled))
end end
def self.aliases
@aliases ||= {}
end
def self.attributes
@attributes ||= []
end
def self.attribute(name, other_names = []) def self.attribute(name, other_names = [])
class_eval <<-EOS, __FILE__, __LINE__ class_eval <<-EOS, __FILE__, __LINE__
attr_accessor :#{name} attr_accessor :#{name}
@ -21,14 +29,6 @@ module Fog
self.attribute(name, other_names) self.attribute(name, other_names)
end end
def self.aliases
@aliases ||= {}
end
def self.attributes
@attributes ||= []
end
def _dump def _dump
Marshal.dump(attributes) Marshal.dump(attributes)
end end