lib/nanoc/base/context.rb in nanoc-3.8.0 vs lib/nanoc/base/context.rb in nanoc-4.0.0a1

- old
+ new

@@ -1,8 +1,8 @@ # encoding: utf-8 -module Nanoc +module Nanoc::Int # Provides a context and a binding for use in filters such as the ERB and # Haml ones. class Context # Creates a new context based off the contents of the hash. # @@ -13,10 +13,10 @@ # # @param [Hash] hash A list of key-value pairs to make available # # @example Defining a context and accessing values # - # context = Nanoc::Context.new( + # context = Nanoc::Int::Context.new( # :name => 'Max Payne', # :location => 'in a cheap motel' # ) # context.instance_eval do # "I am #{name} and I am hiding #{@location}."