Class: MrbParser::EndSection

Inherits:
Section
  • Object
show all
Defined in:
lib/mrb_parser/end_section.rb

Constant Summary

Constants inherited from Section

Section::BINARY_EOF, Section::DEBUG_IDENTIFIER, Section::IREP_IDENTIFIER, Section::LINENO_IDENTIFIER

Instance Attribute Summary

Attributes inherited from Section

#signature, #size

Instance Method Summary collapse

Methods inherited from Section

parse, #parse

Constructor Details

#initializeEndSection

Returns a new instance of EndSection.



3
4
5
# File 'lib/mrb_parser/end_section.rb', line 3

def initialize(*)
  super
end

Instance Method Details

#dumpObject



14
15
16
17
18
19
# File 'lib/mrb_parser/end_section.rb', line 14

def dump
  printf "*** END SECTION ***\n"
  printf "secID: %s\n", @signature
  printf "size : %s\n", @size
  printf "*** ***\n"
end

#end?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/mrb_parser/end_section.rb', line 10

def end?
  true
end

#parse_body(parser) ⇒ Object



7
8
# File 'lib/mrb_parser/end_section.rb', line 7

def parse_body(parser)
end