Sha256: 52ecad7bc03cc964ad63f90b96da02389616ca446212004726d86960750e4487
Contents?: true
Size: 518 Bytes
Versions: 3
Compression:
Stored size: 518 Bytes
Contents
module Contextify class PendingContext # The path being loaded attr_reader :path # The blocks to be loaded attr_accessor :blocks # # Creates a new PendingContext object with the specified _path_. # def initialize(path) @path = File.expand_path(path) @blocks = {} end # # Iterates over each block in the pending context, passing their name # and value to the given _block_. # def each_block(&block) @blocks.each(&block) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
contextify-0.1.1 | lib/contextify/pending_context.rb |
contextify-0.1.2 | lib/contextify/pending_context.rb |
contextify-0.1.0 | lib/contextify/pending_context.rb |