Class: ClockworkComicPDF::SectionTextBox
- Defined in:
- lib/clockwork_comic_pdf/section.rb
Overview
text box method
Direct Known Subclasses
Instance Attribute Summary collapse
-
#file ⇒ Object
Returns the value of attribute file.
-
#options ⇒ Object
Returns the value of attribute options.
Attributes inherited from Section
#name, #print_section_intro, #type
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ SectionTextBox
constructor
A new instance of SectionTextBox.
- #req_keys ⇒ Object
- #valid_options ⇒ Object
Methods inherited from Section
Methods included from OptionValidation
#check_options, #check_required
Constructor Details
#initialize(options = {}) ⇒ SectionTextBox
Returns a new instance of SectionTextBox.
134 135 136 137 138 |
# File 'lib/clockwork_comic_pdf/section.rb', line 134 def initialize( = {}) super self. = [:options] self.file = [:file] end |
Instance Attribute Details
#file ⇒ Object
Returns the value of attribute file.
119 120 121 |
# File 'lib/clockwork_comic_pdf/section.rb', line 119 def file @file end |
#options ⇒ Object
Returns the value of attribute options.
119 120 121 |
# File 'lib/clockwork_comic_pdf/section.rb', line 119 def @options end |
Instance Method Details
#req_keys ⇒ Object
127 128 129 130 131 132 |
# File 'lib/clockwork_comic_pdf/section.rb', line 127 def req_keys super @required_keys[:file] = @file @required_keys[:options] = @options @required_keys end |
#valid_options ⇒ Object
121 122 123 124 125 |
# File 'lib/clockwork_comic_pdf/section.rb', line 121 def super @valid_options << :file @valid_options << :options end |