Class: Gonzui::WordInfo

Inherits:
Struct
  • Object
show all
Includes:
BytenoMixin
Defined in:
lib/gonzui/info.rb,
lib/gonzui/info.rb

Constant Summary collapse

DeltaSize =

dump info

2
UnitSize =
3

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from BytenoMixin

#end_byteno, #range

Instance Attribute Details

#bytenoObject

Returns the value of attribute byteno

Returns:

  • (Object)

    the current value of byteno



23
24
25
# File 'lib/gonzui/info.rb', line 23

def byteno
  @byteno
end

#linenoObject

Returns the value of attribute lineno

Returns:

  • (Object)

    the current value of lineno



23
24
25
# File 'lib/gonzui/info.rb', line 23

def lineno
  @lineno
end

#path_idObject

Returns the value of attribute path_id

Returns:

  • (Object)

    the current value of path_id



23
24
25
# File 'lib/gonzui/info.rb', line 23

def path_id
  @path_id
end

#seqnoObject

Returns the value of attribute seqno

Returns:

  • (Object)

    the current value of seqno



23
24
25
# File 'lib/gonzui/info.rb', line 23

def seqno
  @seqno
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



23
24
25
# File 'lib/gonzui/info.rb', line 23

def type
  @type
end

#type_idObject

Returns the value of attribute type_id

Returns:

  • (Object)

    the current value of type_id



23
24
25
# File 'lib/gonzui/info.rb', line 23

def type_id
  @type_id
end

#word_idObject

Returns the value of attribute word_id

Returns:

  • (Object)

    the current value of word_id



23
24
25
# File 'lib/gonzui/info.rb', line 23

def word_id
  @word_id
end

Instance Method Details

#match?(target_type) ⇒ Boolean

Returns:

  • (Boolean)


32
33
34
# File 'lib/gonzui/info.rb', line 32

def match?(target_type)
  target_type == :all or target_type == self.type
end