Class: ActiveFacts::Generators::Scala

Inherits:
Helpers::OO show all
Defined in:
lib/activefacts/generators/scala.rb

Overview

Generate Scala module containing classes for an ActiveFacts vocabulary. Invoke as

afgen --scala[=options] <file>.cql

Options are comma or space separated:

  • help list available options

Instance Method Summary collapse

Methods inherited from Helpers::OO

#append_ring_to_reading, #constraint_banner, #constraint_dump, #constraint_end, #constraints_dump, #entity_type_banner, #entity_type_dump, #entity_type_group_end, #fact_roles_dump, #fact_type_banner, #fact_type_end, #roles_dump, #value_type_banner, #value_type_end

Methods inherited from Helpers::OrderedDumper

#append_ring_to_reading, #build_entity_dependencies, #constraint_banner, #constraint_dump, #constraint_end, #constraint_sort_key, #constraints_dump, #derivation_precursors_complete, #describe_fact_type, #describe_role_sequence, #describe_roles, #entity_type_banner, #entity_type_group_end, #entity_types_dump, #fact_instances_dump, #fact_type_banner, #fact_type_dump_with_dependents, #fact_type_end, #fact_type_key, #fact_types_dump, #generate, #identified_by, #print, #puts, #released_fact_types_dump, #role_ref_key, #unit_dump, #units_banner, #units_dump, #units_end, #value_type_banner, #value_type_chain_dump, #value_type_end, #value_type_fork, #value_types_dump

Constructor Details

#initialize(vocabulary, *options) ⇒ Scala

Returns a new instance of Scala.



23
24
25
26
27
# File 'lib/activefacts/generators/scala.rb', line 23

def initialize(vocabulary, *options)
	super
	@constraints_used = {}
  @fact_types_dumped = {}
end