Class: BEL::Nanopub::Support

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/bel/nanopub/support.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#valueObject

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