Class: OntologyUnited::DSL::OntologySentence
- Inherits:
-
OntologyEntityBase
- Object
- OntologyEntityBase
- OntologyUnited::DSL::OntologySentence
- Defined in:
- lib/ontology-united/dsl/ontology_sentence.rb
Instance Attribute Summary collapse
-
#sentence ⇒ Object
readonly
Returns the value of attribute sentence.
Attributes inherited from OntologyEntityBase
Instance Method Summary collapse
-
#initialize(sentence) ⇒ OntologySentence
constructor
A new instance of OntologySentence.
- #to_s(serializer: OntologyUnited::Serializer::DEFAULT.new) ⇒ Object
Methods inherited from OntologyEntityBase
Methods included from VariableStore::Helper
Constructor Details
#initialize(sentence) ⇒ OntologySentence
Returns a new instance of OntologySentence.
8 9 10 |
# File 'lib/ontology-united/dsl/ontology_sentence.rb', line 8 def initialize(sentence) @sentence = sentence end |
Instance Attribute Details
#sentence ⇒ Object (readonly)
Returns the value of attribute sentence.
5 6 7 |
# File 'lib/ontology-united/dsl/ontology_sentence.rb', line 5 def sentence @sentence end |
Instance Method Details
#to_s(serializer: OntologyUnited::Serializer::DEFAULT.new) ⇒ Object
12 13 14 |
# File 'lib/ontology-united/dsl/ontology_sentence.rb', line 12 def to_s(serializer: OntologyUnited::Serializer::DEFAULT.new) serializer.serialize_sentence(self) end |