Class: Resume::Resume
- Inherits:
-
Object
- Object
- Resume::Resume
- Defined in:
- lib/resume.rb
Defined Under Namespace
Classes: ResumeHandler
Instance Attribute Summary collapse
-
#about ⇒ Object
readonly
Returns the value of attribute about.
-
#jobs ⇒ Object
readonly
Returns the value of attribute jobs.
-
#schools ⇒ Object
readonly
Returns the value of attribute schools.
-
#sections ⇒ Object
readonly
Returns the value of attribute sections.
Instance Method Summary collapse
-
#initialize(&block) ⇒ Resume
constructor
Starts a resume definition block.
Constructor Details
#initialize(&block) ⇒ Resume
Starts a resume definition block
20 21 22 23 24 25 26 27 |
# File 'lib/resume.rb', line 20 def initialize &block rh = ResumeHandler.new block.arity < 1 ? rh.instance_eval(&block) : block.call(rh) @about = rh.about @schools = rh.schools @jobs = rh.jobs @sections = rh.sections end |
Instance Attribute Details
#about ⇒ Object (readonly)
Returns the value of attribute about.
18 19 20 |
# File 'lib/resume.rb', line 18 def about @about end |
#jobs ⇒ Object (readonly)
Returns the value of attribute jobs.
18 19 20 |
# File 'lib/resume.rb', line 18 def jobs @jobs end |
#schools ⇒ Object (readonly)
Returns the value of attribute schools.
18 19 20 |
# File 'lib/resume.rb', line 18 def schools @schools end |
#sections ⇒ Object (readonly)
Returns the value of attribute sections.
18 19 20 |
# File 'lib/resume.rb', line 18 def sections @sections end |