Class: MotherBrain::Component::CleanRoom Private

Inherits:
MotherBrain::CleanRoomBase show all
Defined in:
lib/mb/component.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Methods inherited from MotherBrain::CleanRoomBase

dsl_attr_writer, #initialize

Methods included from Logging

add_argument_header, dev, filename, #log_exception, logger, #logger, reset, set_logger, setup

Constructor Details

This class inherits a constructor from MotherBrain::CleanRoomBase

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class MotherBrain::CleanRoomBase

Instance Method Details

#command(name, &block) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



234
235
236
# File 'lib/mb/component.rb', line 234

def command(name, &block)
  real_model.add_command Command.new(name, real_model, &block)
end

#group(name, &block) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



230
231
232
# File 'lib/mb/component.rb', line 230

def group(name, &block)
  real_model.add_group Group.new(name, &block)
end

#versioned(attribute_name = nil) ⇒ Object Also known as: versioned_with

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



225
226
227
# File 'lib/mb/component.rb', line 225

def versioned(attribute_name = nil)
  version_attribute attribute_name || "#{@real_model.name}.version"
end