module Tuxedo

Tuxedo main module To use Tuxedo include it in any Ruby Object

@example

class BananaPresenter
  include Tuxedo

  def name
    'hello'
  end

  def name_with_args(name, surname: '')
    "hello #{name}, #{surname}"
  end
end

Tuxedo main module

Tuxedo main module

Tuxedo main module

Constants

VERSION

Public Class Methods

config() click to toggle source

Returns the current config

@return [Tuxedo::Configuration]

# File lib/tuxedo/config.rb, line 23
def self.config
  @config || Tuxedo::Configuration.new
end
configure() { |config ||= configuration| ... } click to toggle source

Configures global settings for Tuxedo

@example

Tuxedo.configure do |config|
  config.suffix = 'Presenter'
end

@return [Tuxedo::Configuration]

# File lib/tuxedo/config.rb, line 15
def self.configure
  yield @config ||= Tuxedo::Configuration.new
end
included(base) click to toggle source

When included, extend the {ClassMethods} and include the {InstanceMethods}

@param [Klass] base

# File lib/tuxedo.rb, line 95
def self.included(base)
  base.send(:include, InstanceMethods)
  base.extend(ClassMethods)
end