lib/raap/value/module.rb in raap-0.2.0 vs lib/raap/value/module.rb in raap-0.3.0
- old
+ new
@@ -1,14 +1,15 @@
module RaaP
module Value
# FIXME: consider self_types
- class Module < BasicObject
+ # HINT: intersection?
+ class Module
attr_reader :type
def initialize(type)
@type = type
const = ::Object.const_get(type.name.absolute!.to_s)
- BindCall.extend(self, const)
+ extend(const)
end
def inspect = "#<module #{@type}>"
def class = Value::Module
end