Class: Twine::StringsSection

Inherits:
Object
  • Object
show all
Defined in:
lib/twine/stringsfile.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/twine/stringsfile.rb', line 3

def name
  @name
end

#rowsObject (readonly)

Returns the value of attribute rows.



4
5
6
# File 'lib/twine/stringsfile.rb', line 4

def rows
  @rows
end