class Hakuban::ObjectDescriptor
Attributes
json[R]
Public Class Methods
from_ffi(ffi)
click to toggle source
# File lib/hakuban/hakuban.rb, line 167 def self.from_ffi(ffi) ObjectDescriptor.new(ffi.tags, ffi.json) end
new(tags,json)
click to toggle source
# File lib/hakuban/hakuban.rb, line 159 def initialize(tags,json) @tags, @json = Set.new(tags), json end
Public Instance Methods
==(other)
click to toggle source
# File lib/hakuban/hakuban.rb, line 171 def ==(other) @tags == other.tags and @json == other.json end
Also aliased as: eql?
hash()
click to toggle source
# File lib/hakuban/hakuban.rb, line 177 def hash [@tags.hash, @json.hash].hash end
inspect()
click to toggle source
# File lib/hakuban/hakuban.rb, line 181 def inspect "#<ObjectDescriptor @tags={%s}, @json=%p>"%[self.tags.map(&:inspect).join(","), self.json] end
to_ffi()
click to toggle source
# File lib/hakuban/hakuban.rb, line 163 def to_ffi FFI::FFIObjectDescriptor.construct(@tags, @json) end