alpha sorting methods
This commit is contained in:
parent
a8cc55e75c
commit
66c0bd3e51
|
@ -5,6 +5,14 @@ module Fog
|
|||
new(Marshal.load(marshalled))
|
||||
end
|
||||
|
||||
def self.aliases
|
||||
@aliases ||= {}
|
||||
end
|
||||
|
||||
def self.attributes
|
||||
@attributes ||= []
|
||||
end
|
||||
|
||||
def self.attribute(name, other_names = [])
|
||||
class_eval <<-EOS, __FILE__, __LINE__
|
||||
attr_accessor :#{name}
|
||||
|
@ -21,14 +29,6 @@ module Fog
|
|||
self.attribute(name, other_names)
|
||||
end
|
||||
|
||||
def self.aliases
|
||||
@aliases ||= {}
|
||||
end
|
||||
|
||||
def self.attributes
|
||||
@attributes ||= []
|
||||
end
|
||||
|
||||
def _dump
|
||||
Marshal.dump(attributes)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue