Class: Slidict::Deck
- Inherits:
-
Object
- Object
- Slidict::Deck
- Defined in:
- lib/slidict/deck.rb
Instance Attribute Summary collapse
-
#audience ⇒ Object
readonly
Returns the value of attribute audience.
-
#duration ⇒ Object
readonly
Returns the value of attribute duration.
-
#framework ⇒ Object
readonly
Returns the value of attribute framework.
-
#goal ⇒ Object
readonly
Returns the value of attribute goal.
-
#topic ⇒ Object
readonly
Returns the value of attribute topic.
Instance Method Summary collapse
-
#initialize(topic:, duration:, audience:, goal:, framework: "slidev", slides: nil) ⇒ Deck
constructor
A new instance of Deck.
- #slides ⇒ Object
Constructor Details
#initialize(topic:, duration:, audience:, goal:, framework: "slidev", slides: nil) ⇒ Deck
Returns a new instance of Deck.
9 10 11 12 13 14 15 16 |
# File 'lib/slidict/deck.rb', line 9 def initialize(topic:, duration:, audience:, goal:, framework: "slidev", slides: nil) @topic = normalize(topic, fallback: "Untitled presentation") @duration = normalize(duration, fallback: "5 minutes") @audience = normalize(audience, fallback: "general audience") @goal = normalize(goal, fallback: "understand the key message") @framework = normalize(framework, fallback: "slidev").downcase @slides = end |
Instance Attribute Details
#audience ⇒ Object (readonly)
Returns the value of attribute audience.
7 8 9 |
# File 'lib/slidict/deck.rb', line 7 def audience @audience end |
#duration ⇒ Object (readonly)
Returns the value of attribute duration.
7 8 9 |
# File 'lib/slidict/deck.rb', line 7 def duration @duration end |
#framework ⇒ Object (readonly)
Returns the value of attribute framework.
7 8 9 |
# File 'lib/slidict/deck.rb', line 7 def framework @framework end |
#goal ⇒ Object (readonly)
Returns the value of attribute goal.
7 8 9 |
# File 'lib/slidict/deck.rb', line 7 def goal @goal end |
#topic ⇒ Object (readonly)
Returns the value of attribute topic.
7 8 9 |
# File 'lib/slidict/deck.rb', line 7 def topic @topic end |
Instance Method Details
#slides ⇒ Object
18 19 20 |
# File 'lib/slidict/deck.rb', line 18 def @slides || end |