Class: MagicLine
- Inherits:
-
Object
- Object
- MagicLine
- Defined in:
- lib/magicfile.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#space_num ⇒ Object
Returns the value of attribute space_num.
Instance Method Summary collapse
-
#initialize(content = '', space_num = 0) ⇒ MagicLine
constructor
A new instance of MagicLine.
Constructor Details
#initialize(content = '', space_num = 0) ⇒ MagicLine
8 9 10 11 |
# File 'lib/magicfile.rb', line 8 def initialize(content='', space_num=0) @content = content @space_num = space_num end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
6 7 8 |
# File 'lib/magicfile.rb', line 6 def content @content end |
#space_num ⇒ Object
Returns the value of attribute space_num.
6 7 8 |
# File 'lib/magicfile.rb', line 6 def space_num @space_num end |