Skip to content

Commit

Permalink
Include helpers in Nanoc::Int::Context
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdefreyne committed Apr 23, 2017
1 parent e15c098 commit b477cd9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/nanoc/base/entities/code_snippet.rb
Expand Up @@ -32,6 +32,7 @@ def initialize(data, filename)
#
# @return [void]
def load
eval('def self.include(mod); Nanoc::Int::Context.instance_eval { include mod }; end', TOPLEVEL_BINDING)
eval(@data, TOPLEVEL_BINDING, @filename)
nil
end
Expand Down

0 comments on commit b477cd9

Please sign in to comment.