Class: MotherBrain::Component::CleanRoom Private
- Inherits:
-
MotherBrain::CleanRoomBase
- Object
- MotherBrain::CleanRoomBase
- MotherBrain::Component::CleanRoom
- 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
- #command(name, &block) ⇒ Object private
- #group(name, &block) ⇒ Object private
- #versioned(attribute_name = nil) ⇒ Object (also: #versioned_with) private
Methods inherited from MotherBrain::CleanRoomBase
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 |