Class: CBOR::SimpleValue

Inherits:
Struct
  • Object
show all
Defined in:
lib/libcbor/simple_value.rb

Overview

Represents Simple value other than those that have native Ruby mapping

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



3
4
5
# File 'lib/libcbor/simple_value.rb', line 3

def value
  @value
end

Instance Method Details

#==(other) ⇒ Object



4
5
6
7
8
# File 'lib/libcbor/simple_value.rb', line 4

def ==(other)
	if other.is_a? SimpleValue
		other.value == value
	end
end