Module: Krikri::MappingDSL
- Extended by:
- ActiveSupport::Concern
- Includes:
- ParserMethods, RdfSubjects
- Included in:
- Mapping
- Defined in:
- lib/krikri/mapping_dsl.rb,
lib/krikri/mapping_dsl/rdf_subjects.rb,
lib/krikri/mapping_dsl/parser_methods.rb,
lib/krikri/mapping_dsl/child_declaration.rb,
lib/krikri/mapping_dsl/property_declaration.rb
Overview
Mixin implementing DSL methods for metadata mapping. The main MappingDSL module implements the core property definition methods, while nested modules add various extensions.
Defined Under Namespace
Modules: ParserMethods, RdfSubjects Classes: ChildDeclaration, PropertyDeclaration
Instance Method Summary collapse
Methods included from RdfSubjects
Methods included from ParserMethods
#local_name, #record, #record_uri
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &block) ⇒ Object
24 25 26 27 |
# File 'lib/krikri/mapping_dsl.rb', line 24 def method_missing(name, *args, &block) return add_child(name, *args, &block) if block && block.arity == 0 add_property(name, *args, &block) end |
Instance Method Details
#properties ⇒ Object
16 17 18 |
# File 'lib/krikri/mapping_dsl.rb', line 16 def properties @properties ||= [] end |
#respond_to_missing? ⇒ Boolean
20 21 22 |
# File 'lib/krikri/mapping_dsl.rb', line 20 def respond_to_missing?(*) true end |