class Sourcery::Context

Attributes

metadata[R]

Public Class Methods

new(dir=nil) click to toggle source
# File lib/sourcery/context.rb, line 12
def initialize(dir=nil)
  @metadata = Metadata.new(dir)
end

Public Instance Methods

__binding__() click to toggle source

Get a clean binding.

# File lib/sourcery/context.rb, line 38
def __binding__
  binding
end
method_missing(s) click to toggle source
# File lib/sourcery/context.rb, line 17
def method_missing(s)
  @metadata.send(s)
end
root() click to toggle source
# File lib/sourcery/context.rb, line 22
def root
  metadata.root
end
to_h() click to toggle source
# File lib/sourcery/context.rb, line 27
def to_h
  @metadata.to_h
end