Class: GuitarProParser::PageSetup

Inherits:
Object
  • Object
show all
Defined in:
lib/guitar_pro_parser/page_setup.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePageSetup

Returns a new instance of PageSetup.



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/guitar_pro_parser/page_setup.rb', line 9

def initialize
  @page_format_length = 0
  @page_format_width = 0
  @left_margin = 0
  @right_margin = 0
  @top_margin = 0
  @bottom_margin = 0
  @score_size = 0

  @title = ''
  @subtitle = ''
  @artist = ''
  @album = ''
  @lyrics_author = ''
  @music_author = ''
  @lyrics_and_music_author = ''
  @copyright_line_1 = ''
  @copyright_line_2 = ''
  @page_number = ''

  @displayed_fields = []
end

Instance Attribute Details

#albumObject

Returns the value of attribute album.



5
6
7
# File 'lib/guitar_pro_parser/page_setup.rb', line 5

def album
  @album
end

#artistObject

Returns the value of attribute artist.



5
6
7
# File 'lib/guitar_pro_parser/page_setup.rb', line 5

def artist
  @artist
end

#bottom_marginObject

Returns the value of attribute bottom_margin.



5
6
7
# File 'lib/guitar_pro_parser/page_setup.rb', line 5

def bottom_margin
  @bottom_margin
end

Returns the value of attribute copyright_line_1.



5
6
7
# File 'lib/guitar_pro_parser/page_setup.rb', line 5

def copyright_line_1
  @copyright_line_1
end

Returns the value of attribute copyright_line_2.



5
6
7
# File 'lib/guitar_pro_parser/page_setup.rb', line 5

def copyright_line_2
  @copyright_line_2
end

#displayed_fieldsObject

Returns the value of attribute displayed_fields.



5
6
7
# File 'lib/guitar_pro_parser/page_setup.rb', line 5

def displayed_fields
  @displayed_fields
end

#left_marginObject

Returns the value of attribute left_margin.



5
6
7
# File 'lib/guitar_pro_parser/page_setup.rb', line 5

def left_margin
  @left_margin
end

#lyrics_and_music_authorObject

Returns the value of attribute lyrics_and_music_author.



5
6
7
# File 'lib/guitar_pro_parser/page_setup.rb', line 5

def lyrics_and_music_author
  @lyrics_and_music_author
end

#lyrics_authorObject

Returns the value of attribute lyrics_author.



5
6
7
# File 'lib/guitar_pro_parser/page_setup.rb', line 5

def lyrics_author
  @lyrics_author
end

#music_authorObject

Returns the value of attribute music_author.



5
6
7
# File 'lib/guitar_pro_parser/page_setup.rb', line 5

def music_author
  @music_author
end

#page_format_lengthObject

Returns the value of attribute page_format_length.



5
6
7
# File 'lib/guitar_pro_parser/page_setup.rb', line 5

def page_format_length
  @page_format_length
end

#page_format_widthObject

Returns the value of attribute page_format_width.



5
6
7
# File 'lib/guitar_pro_parser/page_setup.rb', line 5

def page_format_width
  @page_format_width
end

#page_numberObject

Returns the value of attribute page_number.



5
6
7
# File 'lib/guitar_pro_parser/page_setup.rb', line 5

def page_number
  @page_number
end

#right_marginObject

Returns the value of attribute right_margin.



5
6
7
# File 'lib/guitar_pro_parser/page_setup.rb', line 5

def right_margin
  @right_margin
end

#score_sizeObject

Returns the value of attribute score_size.



5
6
7
# File 'lib/guitar_pro_parser/page_setup.rb', line 5

def score_size
  @score_size
end

#subtitleObject

Returns the value of attribute subtitle.



5
6
7
# File 'lib/guitar_pro_parser/page_setup.rb', line 5

def subtitle
  @subtitle
end

#titleObject

Returns the value of attribute title.



5
6
7
# File 'lib/guitar_pro_parser/page_setup.rb', line 5

def title
  @title
end

#top_marginObject

Returns the value of attribute top_margin.



5
6
7
# File 'lib/guitar_pro_parser/page_setup.rb', line 5

def top_margin
  @top_margin
end