Class: BEL::Language::Statement
- Inherits:
-
Object
- Object
- BEL::Language::Statement
- Defined in:
- lib/bel/language.rb
Instance Attribute Summary collapse
-
#object ⇒ Object
Returns the value of attribute object.
-
#relationship ⇒ Object
Returns the value of attribute relationship.
-
#subject ⇒ Object
Returns the value of attribute subject.
Instance Method Summary collapse
-
#initialize(subject, relationship = nil, object = nil) ⇒ Statement
constructor
A new instance of Statement.
Constructor Details
#initialize(subject, relationship = nil, object = nil) ⇒ Statement
Returns a new instance of Statement.
145 146 147 148 149 150 |
# File 'lib/bel/language.rb', line 145 def initialize(subject, relationship=nil, object=nil) raise ArgumentError, 'subject must not be nil' unless subject @subject = subject @relationship = relationship @object = object end |
Instance Attribute Details
#object ⇒ Object
Returns the value of attribute object.
143 144 145 |
# File 'lib/bel/language.rb', line 143 def object @object end |
#relationship ⇒ Object
Returns the value of attribute relationship.
143 144 145 |
# File 'lib/bel/language.rb', line 143 def relationship @relationship end |
#subject ⇒ Object
Returns the value of attribute subject.
143 144 145 |
# File 'lib/bel/language.rb', line 143 def subject @subject end |