Class: Must::StructInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/must/struct_info.rb

Defined Under Namespace

Modules: Browser, Classify

Instance Method Summary collapse

Constructor Details

#initialize(obj) ⇒ StructInfo

StructInfo



81
82
83
# File 'lib/must/struct_info.rb', line 81

def initialize(obj)
  @obj = obj
end

Instance Method Details

#compactObject



89
90
91
# File 'lib/must/struct_info.rb', line 89

def compact
  Browser.compact(@obj)
end

#inspectObject



97
98
99
# File 'lib/must/struct_info.rb', line 97

def inspect
  compact.inspect
end

#same?(dst) ⇒ Boolean

Returns:



93
94
95
# File 'lib/must/struct_info.rb', line 93

def same?(dst)
  Browser.same?(@obj, dst)
end

#typesObject



85
86
87
# File 'lib/must/struct_info.rb', line 85

def types
  Browser.types(@obj)
end