Module: RailsAiTag

Defined in:
lib/rails_ai_tag/configuration.rb,
lib/rails_ai_tag.rb,
lib/rails_ai_tag/version.rb,
lib/rails_ai_tag/helpers/ai_image_helper.rb

Overview

lib/rails_ai_tag/configuration.rb

Defined Under Namespace

Modules: Helpers Classes: Configuration, Railtie

Constant Summary collapse

VERSION =
"0.1.1"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



18
19
20
# File 'lib/rails_ai_tag.rb', line 18

def configuration
  @configuration
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



19
20
21
22
# File 'lib/rails_ai_tag.rb', line 19

def configure
  self.configuration ||= Configuration.new
  yield(configuration)
end