Class: Babushka::DepRequirement

Inherits:
Struct
  • Object
show all
Defined in:
lib/babushka/dep.rb

Overview

A DepRequirement is a representation of a dep being called - its name, along with the arguments that will be passed to it.

DepRequirement is used internally by babushka when deps are required with arguments using “name”.with(args). This allows babushka to delay loading the dep in question until the moment it's called.

Instance Attribute Summary collapse

Instance Attribute Details

#argsObject

Returns the value of attribute args

Returns:

  • (Object)

    the current value of args


22
23
24
# File 'lib/babushka/dep.rb', line 22

def args
  @args
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name


22
23
24
# File 'lib/babushka/dep.rb', line 22

def name
  @name
end