Module: Quby::Compiler
- Defined in:
- lib/quby/compiler/type_validator.rb,
lib/quby/compiler.rb,
lib/quby/compiler/dsl.rb,
lib/quby/compiler/output.rb,
lib/quby/compiler/version.rb,
lib/quby/compiler/dsl/base.rb,
lib/quby/compiler/instance.rb,
lib/quby/compiler/dsl/helpers.rb,
lib/quby/compiler/entities/flag.rb,
lib/quby/compiler/entities/item.rb,
lib/quby/compiler/entities/text.rb,
lib/quby/compiler/entities/panel.rb,
lib/quby/compiler/entities/table.rb,
lib/quby/compiler/entities/fields.rb,
lib/quby/compiler/markdown_parser.rb,
lib/quby/compiler/entities/textvar.rb,
lib/quby/compiler/entities/version.rb,
lib/quby/compiler/dsl/panel_builder.rb,
lib/quby/compiler/dsl/score_builder.rb,
lib/quby/compiler/dsl/table_builder.rb,
lib/quby/compiler/entities/question.rb,
lib/quby/compiler/dsl/questions/base.rb,
lib/quby/compiler/services/seed_diff.rb,
lib/quby/compiler/entities/definition.rb,
lib/quby/compiler/entities/validation.rb,
lib/quby/compiler/services/quby_proxy.rb,
lib/quby/compiler/dsl/question_builder.rb,
lib/quby/compiler/entities/score_schema.rb,
lib/quby/compiler/entities/lookup_tables.rb,
lib/quby/compiler/entities/outcome_table.rb,
lib/quby/compiler/entities/questionnaire.rb,
lib/quby/compiler/entities/charting/chart.rb,
lib/quby/compiler/outputs/seed_serializer.rb,
lib/quby/compiler/dsl/calls_custom_methods.rb,
lib/quby/compiler/dsl/score_schema_builder.rb,
lib/quby/compiler/entities/charting/charts.rb,
lib/quby/compiler/entities/question_option.rb,
lib/quby/compiler/entities/subscore_schema.rb,
lib/quby/compiler/entities/visibility_rule.rb,
lib/quby/compiler/outputs/roqua_serializer.rb,
lib/quby/compiler/dsl/questionnaire_builder.rb,
lib/quby/compiler/dsl/charting/chart_builder.rb,
lib/quby/compiler/entities/score_calculation.rb,
lib/quby/compiler/entities/charting/bar_chart.rb,
lib/quby/compiler/entities/charting/plottable.rb,
lib/quby/compiler/entities/charting/line_chart.rb,
lib/quby/compiler/services/text_transformation.rb,
lib/quby/compiler/entities/anonymous_conditions.rb,
lib/quby/compiler/entities/charting/radar_chart.rb,
lib/quby/compiler/services/definition_validator.rb,
lib/quby/compiler/dsl/charting/bar_chart_builder.rb,
lib/quby/compiler/dsl/charting/line_chart_builder.rb,
lib/quby/compiler/dsl/charting/radar_chart_builder.rb,
lib/quby/compiler/entities/charting/overview_chart.rb,
lib/quby/compiler/entities/questions/date_question.rb,
lib/quby/compiler/entities/questions/text_question.rb,
lib/quby/compiler/dsl/standardized_panel_generators.rb,
lib/quby/compiler/entities/questions/float_question.rb,
lib/quby/compiler/entities/questions/radio_question.rb,
lib/quby/compiler/entities/questions/select_question.rb,
lib/quby/compiler/entities/questions/string_question.rb,
lib/quby/compiler/dsl/charting/overview_chart_builder.rb,
lib/quby/compiler/dsl/questions/date_question_builder.rb,
lib/quby/compiler/dsl/questions/text_question_builder.rb,
lib/quby/compiler/entities/questions/integer_question.rb,
lib/quby/compiler/outputs/quby_frontend_v1_serializer.rb,
lib/quby/compiler/outputs/quby_frontend_v2_serializer.rb,
lib/quby/compiler/dsl/questions/float_question_builder.rb,
lib/quby/compiler/dsl/questions/radio_question_builder.rb,
lib/quby/compiler/entities/questions/checkbox_question.rb,
lib/quby/compiler/dsl/questions/select_question_builder.rb,
lib/quby/compiler/dsl/questions/string_question_builder.rb,
lib/quby/compiler/dsl/questions/integer_question_builder.rb,
lib/quby/compiler/entities/questions/deprecated_question.rb,
lib/quby/compiler/dsl/questions/checkbox_question_builder.rb,
lib/quby/compiler/dsl/questions/deprecated_question_builder.rb
Overview
validates :key, ‘quby/type’: Symbol
Defined Under Namespace
Modules: DSL, Entities, Outputs, Services Classes: HTMLWithPants, Instance, MarkdownParser, Output, TypeValidator
Constant Summary collapse
- VERSION =
"0.5.10"
Class Method Summary collapse
- .compile(key, sourcecode, path: nil, lookup_tables:, &block) ⇒ Object
- .validate(key, sourcecode, lookup_tables:) ⇒ Object
Class Method Details
.compile(key, sourcecode, path: nil, lookup_tables:, &block) ⇒ Object
30 31 32 33 34 35 36 37 |
# File 'lib/quby/compiler.rb', line 30 def self.compile(key, sourcecode, path: nil, lookup_tables:, &block) Quby::Compiler::Instance.new(lookup_tables: lookup_tables).compile( key: key, sourcecode: sourcecode, path: path, &block ) end |