DeepRuby: Extending Ruby with Dual Deep Instantiation
- Authors
- B. Neumayr, C. Schütz, C. Horner, M. Schrefl
- Paper
- Neum17a (2017)
- Citation
Proceedings of the 4th International Workshop on Multi-Level Modelling (MULTI 2017), co-located with the ACM/IEEE 20th International Conference on Model Driven Engineering Languages and Systems (MODELS 2017), MODELS (Satellite Events), September 17-22, 2017, Austin, Texas, USA, CEUR Workshop Proceedings, Vol. 2019, Online: http://ceur-ws.org/Vol-2019/multi_7.pdf, open Access, peer reviewed, pp. 252-260, 2017. - Resources
- Copy (In order to obtain the copy please send an email with subject Neum17a to dke.win@jku.at)
Abstract (English)
Clabjects, the central construct of multi-level modeling, overcome the strict separation of class and object in conceptual modeling. Ruby, a dynamic object-oriented programming language, similarly treats classes as objects and thus appears as a natural candidate for implementing clabject-based modeling constructs. In this paper we introduce DeepRuby, a Ruby implementation of the core constructs of Dual Deep Instantiation: clabject hierarchies and attributes with separate source potency and target potency. DeepRuby represents clabjects at two layers: the clabject layer and the clabject facet layer. At the clabject facet layer, a clabject with maximum source potency i-1 and maximum target potency j-1 is represented by a matrix of i × j clabject facets organized using Ruby’s superclass and eigenclass constructs. Clabject facets can easily be extended with behaviour implemented in custom methods.
Keywords: Multilevel Modeling, Deep Metamodeling, Programming Languages, Ruby, Object-oriented Programming