Class: ClockworkComicPDF::SectionTextBox

Inherits:
Section
  • Object
show all
Defined in:
lib/clockwork_comic_pdf/section.rb

Overview

text box method

Direct Known Subclasses

SectionFormattedTextBox

Instance Attribute Summary collapse

Attributes inherited from Section

#name, #print_section_intro, #type

Instance Method Summary collapse

Methods inherited from Section

#validate

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(options = {})
  super
  self.options = options[:options]
  self.file = options[:file]
end

Instance Attribute Details

#fileObject

Returns the value of attribute file.



119
120
121
# File 'lib/clockwork_comic_pdf/section.rb', line 119

def file
  @file
end

#optionsObject

Returns the value of attribute options.



119
120
121
# File 'lib/clockwork_comic_pdf/section.rb', line 119

def options
  @options
end

Instance Method Details

#req_keysObject



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_optionsObject



121
122
123
124
125
# File 'lib/clockwork_comic_pdf/section.rb', line 121

def valid_options
  super
  @valid_options << :file
  @valid_options << :options
end