Class: BEL::Nanopub::Support
- Inherits:
-
Object
- Object
- BEL::Nanopub::Support
- Extended by:
- Forwardable
- Defined in:
- lib/bel/nanopub/support.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
- #==(other) ⇒ Object (also: #eql?)
-
#initialize(value = nil) ⇒ Support
constructor
A new instance of Support.
Constructor Details
#initialize(value = nil) ⇒ Support
Returns a new instance of Support.
10 11 12 |
# File 'lib/bel/nanopub/support.rb', line 10 def initialize(value = nil) @value = value end |
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
8 9 10 |
# File 'lib/bel/nanopub/support.rb', line 8 def value @value end |
Instance Method Details
#==(other) ⇒ Object Also known as: eql?
14 15 16 17 |
# File 'lib/bel/nanopub/support.rb', line 14 def ==(other) return false if other.nil? @value == other.value end |