Class: Accio::Group
- Inherits:
-
Object
- Object
- Accio::Group
- Defined in:
- lib/accio/group.rb
Overview
Public: Represents a snippet group (e. g. Ruby, Networking, AWS etc.).
Instance Attribute Summary collapse
-
#snippets ⇒ Object
Returns the value of attribute snippets.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(title) ⇒ Group
constructor
Public: Constructor.
Constructor Details
#initialize(title) ⇒ Group
Public: Constructor.
title - The title of the group.
9 10 11 12 |
# File 'lib/accio/group.rb', line 9 def initialize(title) @title = title @snippets = [] end |
Instance Attribute Details
#snippets ⇒ Object
Returns the value of attribute snippets.
4 5 6 |
# File 'lib/accio/group.rb', line 4 def snippets @snippets end |
#title ⇒ Object
Returns the value of attribute title.
4 5 6 |
# File 'lib/accio/group.rb', line 4 def title @title end |