Class: Gonzui::WordInfo
- Inherits:
-
Struct
- Object
- Struct
- Gonzui::WordInfo
- 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
-
#byteno ⇒ Object
Returns the value of attribute byteno.
-
#lineno ⇒ Object
Returns the value of attribute lineno.
-
#path_id ⇒ Object
Returns the value of attribute path_id.
-
#seqno ⇒ Object
Returns the value of attribute seqno.
-
#type ⇒ Object
Returns the value of attribute type.
-
#type_id ⇒ Object
Returns the value of attribute type_id.
-
#word_id ⇒ Object
Returns the value of attribute word_id.
Instance Method Summary collapse
Methods included from BytenoMixin
Instance Attribute Details
#byteno ⇒ Object
Returns the value of attribute byteno
23 24 25 |
# File 'lib/gonzui/info.rb', line 23 def byteno @byteno end |
#lineno ⇒ Object
Returns the value of attribute lineno
23 24 25 |
# File 'lib/gonzui/info.rb', line 23 def lineno @lineno end |
#path_id ⇒ Object
Returns the value of attribute path_id
23 24 25 |
# File 'lib/gonzui/info.rb', line 23 def path_id @path_id end |
#seqno ⇒ Object
Returns the value of attribute seqno
23 24 25 |
# File 'lib/gonzui/info.rb', line 23 def seqno @seqno end |
#type ⇒ Object
Returns the value of attribute type
23 24 25 |
# File 'lib/gonzui/info.rb', line 23 def type @type end |
#type_id ⇒ Object
Returns the value of attribute type_id
23 24 25 |
# File 'lib/gonzui/info.rb', line 23 def type_id @type_id end |
#word_id ⇒ Object
Returns the value of attribute 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
32 33 34 |
# File 'lib/gonzui/info.rb', line 32 def match?(target_type) target_type == :all or target_type == self.type end |