Module: Omen

Defined in:
lib/omen.rb,
lib/omen/config.rb,
lib/omen/engine.rb,
lib/omen/grants.rb,
lib/omen/renamed.rb,
lib/omen/version.rb,
lib/omen/distance.rb,
lib/omen/inquirer.rb,
lib/omen/time_zone.rb,
lib/omen/attributes.rb,
lib/omen/requirements.rb,
lib/generators/omen/install/install_generator.rb

Overview

Staff ask Claude a question about the data an app holds; Claude writes the SQL, Rails runs it.

Defined Under Namespace

Modules: Asked, Attributes, Distance, Executed, Generators, Grants, Inquirer, Renamed, Requirements, Revealed, Spoken, Stated, Stubs, TimeZone Classes: Answer, Column, Combination, Config, Conversation, Engine, Instructions, Query, Question, Reading, Role, Schema

Constant Summary collapse

VERSION =

The version of this gem, as RubyGems knows it.

'0.4.0'

Class Method Summary collapse

Class Method Details

.configOmen::Config

Returns everything this feature has to be told about the app around it.

Returns:

  • (Omen::Config)

    everything this feature has to be told about the app around it.



22
# File 'lib/omen.rb', line 22

def self.config = @config ||= Omen::Config.new

.configure {|config| ... } ⇒ void

This method returns an undefined value.

Yields the configuration, so a host states its own facts in one initializer.

Yields:



26
# File 'lib/omen.rb', line 26

def self.configure = yield config

.tablesArray<String>

Hidden twice over: out of the prompt, and out of what the statement's own role may read.

Returns:

  • (Array<String>)

    the tables this feature keeps its log of questions and answers in.



19
# File 'lib/omen.rb', line 19

def self.tables = [ Omen::Reading, Omen::Question, Omen::Answer ].map(&:table_name)