alpha sorting methods
This commit is contained in:
parent
a8cc55e75c
commit
66c0bd3e51
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue