Skip to content
This repository has been archived by the owner on Sep 24, 2019. It is now read-only.

Add function return type hierarchy to language specification. #19

Closed
4 tasks done
abargnesi opened this issue Mar 29, 2016 · 0 comments
Closed
4 tasks done

Add function return type hierarchy to language specification. #19

abargnesi opened this issue Mar 29, 2016 · 0 comments

Comments

@abargnesi
Copy link
Member

  • Model return type hierarchy using ruby class inheritance.
  • Implement BEL 1.0 return types.
  • Implement BEL 2.0 return types.
  • Tests
@abargnesi abargnesi changed the title Add function type hierarchy to language specification. Add function return type hierarchy to language specification. Mar 29, 2016
abargnesi pushed a commit that referenced this issue Mar 29, 2016
Capture return types and ask if one is a subtype? of the other.

The ReturnType objects will be instantiated in the language version
function definitions.

@nbargnesi, thoughts?

refs #19
abargnesi pushed a commit that referenced this issue Mar 30, 2016
created a ruby class hierarchy to model return types with the Any class
as the root.

added to_sym, subtypes, transitive_subtypes, and subtype_of? class
methods for all return types.

removed bel/language/return_type; return type data and behavior moved
into language return types (bel/language/version1/return_types).

added spec test, favoring tests for subtype and class comparison by
inheritance

refs #19
abargnesi pushed a commit that referenced this issue Mar 30, 2016
This is only used in BEL::Language::Version1::ReturnTypes::Any.

refs #19
abargnesi pushed a commit that referenced this issue Mar 30, 2016
nbargnesi pushed a commit that referenced this issue Apr 2, 2016
- refs #18
- closes #19
- includes doc changes for yard syntax
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant