lib/csl/extensions.rb in csl-1.0.0.pre21 vs lib/csl/extensions.rb in csl-1.0.0.pre22
- old
+ new
@@ -33,15 +33,15 @@
def stringify_keys!
replace(symbolize_keys)
end
end
- module Nesting
- def nesting
- name.split(/::/).inject([]) { |ns, n| ns << (ns[-1] || Object).const_get(n) }
- end
- end
+ module Nesting
+ def nesting
+ name.split(/::/).inject([]) { |ns, n| ns << (ns[-1] || Object).const_get(n) }
+ end
+ end
module Blank
def blank?
nil? || respond_to?(:empty?) && empty?
end
@@ -53,10 +53,10 @@
include CSL::Extensions::SymbolizeKeys unless method_defined?(:symbolize_keys)
include CSL::Extensions::StringifyKeys unless method_defined?(:stringify_keys)
end
class Module
- include CSL::Extensions::Nesting
+ include CSL::Extensions::Nesting
end
class Object
include CSL::Extensions::Blank unless method_defined?(:blank?)
end