Class: Babushka::BaseTemplate

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

Overview

A BaseTemplate is just a blank, passthrough template – all it does is return DepContext as the context against which standard (i.e. untemplated) deps are defined. This allows all deps to be defined in the same manner, whether they were defined against an explicit template or not.

Class Method Summary collapse

Class Method Details

.context_classObject


9
# File 'lib/babushka/dep_template.rb', line 9

def self.context_class; DepContext end

.contextual_nameObject


7
# File 'lib/babushka/dep_template.rb', line 7

def self.contextual_name; name end

.suffixed?Boolean

Returns:

  • (Boolean)

8
# File 'lib/babushka/dep_template.rb', line 8

def self.suffixed?; false end