Module: OntologyUnited::DSL::VariableStore::Declaration
- Included in:
- Ontology
- Defined in:
- lib/ontology-united/dsl/variable_store.rb
Instance Method Summary collapse
Instance Method Details
#declare(obj, as: nil) ⇒ Object
16 17 18 19 20 |
# File 'lib/ontology-united/dsl/variable_store.rb', line 16 def declare(obj, as: nil) if as define_singleton_method(as) { obj } end end |