module Chic

Chic

Opinionated presentation layer comprised of presenters and formatters.

@see Chic::Presenter @see Chic::Presentable @see Chic::Helpers::View

Constants

VERSION

Public Instance Methods

configuration() click to toggle source

Gets the configuration object.

If none was set, a new configuration object is instantiated and returned.

@return [Configuration] the configuration object

@see Configuration

# File lib/chic.rb, line 35
def configuration
  @configuration ||= Configuration.new
end
configure() { |configuration| ... } click to toggle source

Allows for configuring the library using a block.

@example Configuration using a block

Chic.configure do |config|
  # ...
end

@see Configuration

# File lib/chic.rb, line 47
def configure
  yield configuration if block_given?
end