Class: Twine::StringsSection
- Inherits:
-
Object
- Object
- Twine::StringsSection
- Defined in:
- lib/twine/stringsfile.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#rows ⇒ Object
readonly
Returns the value of attribute rows.
Instance Method Summary collapse
-
#initialize(name) ⇒ StringsSection
constructor
A new instance of StringsSection.
Constructor Details
#initialize(name) ⇒ StringsSection
Returns a new instance of StringsSection.
6 7 8 9 |
# File 'lib/twine/stringsfile.rb', line 6 def initialize(name) @name = name @rows = [] end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/twine/stringsfile.rb', line 3 def name @name end |
#rows ⇒ Object (readonly)
Returns the value of attribute rows.
4 5 6 |
# File 'lib/twine/stringsfile.rb', line 4 def rows @rows end |