1
0
Fork 0
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:
geemus 2010-06-07 18:22:31 -07:00
parent 4858fc6594
commit b9fb24963c
3 changed files with 96 additions and 94 deletions

View file

@ -1,3 +1,4 @@
module Fog
module Attributes
module ClassMethods
@ -94,3 +95,4 @@ module Attributes
end
end
end

View file

@ -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

View file

@ -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