class Doctrine::Context
- public
Public Class Methods
new(suite:)
click to toggle source
# File lib/doctrine/context.rb, line 9 def initialize(suite:) @suite = suite end
Public Instance Methods
doctrine(...)
click to toggle source
- public
# File lib/doctrine/context.rb, line 15 def doctrine(...) @context.doctrine(...).tap { |doctrine| @suite.doctrines << doctrine } end
internal_load(path:, root:, type:, target:, strict:)
click to toggle source
# File lib/doctrine/context.rb, line 27 def internal_load(path:, root:, type:, target:, strict:) @context = Core::Loader::Context.new(path: path, root: root, type: type, target: target, strict: strict) eval(path.read, binding, path.to_s) end
load(...)
click to toggle source
- public
# File lib/doctrine/context.rb, line 23 def load(...) self.class.new(suite: @suite).internal_load(...) end