class GlueGun::ConfigBuilder::Command

Attributes

wrappers[R]

Public Class Methods

new(builder, *args) click to toggle source
Calls superclass method
# File lib/glue_gun/config_builder/command.rb, line 4
def self.new(builder, *args)
  builder.cached_command(*args) {
    super
  }
end
new(builder) click to toggle source
# File lib/glue_gun/config_builder/command.rb, line 10
def initialize(builder)
  @builder = builder
  @wrappers = []
end

Public Instance Methods

<<(wrapper) click to toggle source
# File lib/glue_gun/config_builder/command.rb, line 17
def <<(wrapper)
  @wrappers += Array(wrapper)
end
call() click to toggle source
# File lib/glue_gun/config_builder/command.rb, line 22
def call
  raise NotImplementedError,
    "Method #call should be overriden in child classes"
end