lib/ixtlan/babel/context.rb in ixtlan-babel-0.3.2 vs lib/ixtlan/babel/context.rb in ixtlan-babel-0.3.3
- old
+ new
@@ -45,11 +45,11 @@
def allowed?( key )
( @only && @only.include?( key ) ) || ( @only.nil? && !@except.include?( key ) ) || @methods.include?( key )
end
def include?( key )
- @include.include? key
+ @include.include?( key ) || @methods.include?( key )
end
def array?
@include.is_a?( Array )
end
@@ -58,6 +58,6 @@
self.class.new( @include.is_a?( Array ) ? {} : @include[ key ] )
end
end
end
-end
\ No newline at end of file
+end