Class: OntologyUnited::DSL::OntologySentence

Inherits:
OntologyEntityBase show all
Defined in:
lib/ontology-united/dsl/ontology_sentence.rb

Instance Attribute Summary collapse

Attributes inherited from OntologyEntityBase

#the_calls

Instance Method Summary collapse

Methods inherited from OntologyEntityBase

delegate_equality_to, #parent

Methods included from VariableStore::Helper

#as

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

#sentenceObject (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