Class: Mago::RubyFile
- Inherits:
-
Object
- Object
- Mago::RubyFile
- Defined in:
- lib/mago/ruby_file.rb
Overview
Represents a ruby file with magic numbers.
Instance Attribute Summary collapse
-
#magic_numbers ⇒ Object
readonly
Returns the value of attribute magic_numbers.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path) ⇒ RubyFile
constructor
A new instance of RubyFile.
Constructor Details
#initialize(path) ⇒ RubyFile
Returns a new instance of RubyFile.
11 12 13 14 |
# File 'lib/mago/ruby_file.rb', line 11 def initialize(path) @path = path @magic_numbers = [] end |
Instance Attribute Details
#magic_numbers ⇒ Object (readonly)
Returns the value of attribute magic_numbers.
8 9 10 |
# File 'lib/mago/ruby_file.rb', line 8 def magic_numbers @magic_numbers end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
5 6 7 |
# File 'lib/mago/ruby_file.rb', line 5 def path @path end |