Class: MrbParser
- Inherits:
-
Object
- Object
- MrbParser
- Includes:
- Utils
- Defined in:
- lib/mrb_parser.rb,
lib/mrb_parser/crc.rb,
lib/mrb_parser/error.rb,
lib/mrb_parser/utils.rb,
lib/mrb_parser/header.rb,
lib/mrb_parser/section.rb,
lib/mrb_parser/version.rb,
lib/mrb_parser/code_dump.rb,
lib/mrb_parser/debug_info.rb,
lib/mrb_parser/end_section.rb,
lib/mrb_parser/irep_record.rb,
lib/mrb_parser/irep_section.rb,
lib/mrb_parser/debug_section.rb,
lib/mrb_parser/lineno_section.rb,
lib/mrb_parser/debug_info_file.rb
Defined Under Namespace
Modules: Utils Classes: CRC, CodeDump, DebugInfo, DebugInfoFile, DebugSection, EndSection, Error, Header, IrepRecord, IrepSection, LinenoSection, Section
Constant Summary collapse
- VERSION =
"0.1.0"
Instance Attribute Summary collapse
-
#header ⇒ Object
readonly
Returns the value of attribute header.
-
#irep_section ⇒ Object
Returns the value of attribute irep_section.
-
#sections ⇒ Object
readonly
Returns the value of attribute sections.
-
#verbose ⇒ Object
Returns the value of attribute verbose.
Class Method Summary collapse
Instance Method Summary collapse
- #dump ⇒ Object
-
#initialize(filename) ⇒ MrbParser
constructor
A new instance of MrbParser.
- #parse ⇒ Object
Methods included from Utils
#pos, #read, #read_chars, #read_format, #read_n16string, #read_uint16, #read_uint32, #read_uint8, #seek
Constructor Details
#initialize(filename) ⇒ MrbParser
Returns a new instance of MrbParser.
19 20 21 22 23 24 |
# File 'lib/mrb_parser.rb', line 19 def initialize(filename) @filename = filename @data = nil @irep_section = nil @sections = [] end |
Instance Attribute Details
#header ⇒ Object (readonly)
Returns the value of attribute header.
12 13 14 |
# File 'lib/mrb_parser.rb', line 12 def header @header end |
#irep_section ⇒ Object
Returns the value of attribute irep_section.
11 12 13 |
# File 'lib/mrb_parser.rb', line 11 def irep_section @irep_section end |
#sections ⇒ Object (readonly)
Returns the value of attribute sections.
12 13 14 |
# File 'lib/mrb_parser.rb', line 12 def sections @sections end |
#verbose ⇒ Object
Returns the value of attribute verbose.
10 11 12 |
# File 'lib/mrb_parser.rb', line 10 def verbose @verbose end |
Class Method Details
Instance Method Details
#dump ⇒ Object
37 38 39 40 41 42 |
# File 'lib/mrb_parser.rb', line 37 def dump @header.dump @sections.each do |section| section.dump end end |