mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
namespace attributes logic
This commit is contained in:
parent
4858fc6594
commit
b9fb24963c
3 changed files with 96 additions and 94 deletions
|
@ -1,3 +1,4 @@
|
|||
module Fog
|
||||
module Attributes
|
||||
module ClassMethods
|
||||
|
||||
|
@ -94,3 +95,4 @@ module Attributes
|
|||
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
module Fog
|
||||
class Collection < Array
|
||||
|
||||
extend Attributes::ClassMethods
|
||||
include Attributes::InstanceMethods
|
||||
extend Fog::Attributes::ClassMethods
|
||||
include Fog::Attributes::InstanceMethods
|
||||
|
||||
Array.public_instance_methods(false).each do |method|
|
||||
class_eval <<-RUBY
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
module Fog
|
||||
class Model
|
||||
|
||||
extend Attributes::ClassMethods
|
||||
include Attributes::InstanceMethods
|
||||
extend Fog::Attributes::ClassMethods
|
||||
include Fog::Attributes::InstanceMethods
|
||||
|
||||
attr_accessor :connection
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue