Class: Accio::Group

Inherits:
Object
  • Object
show all
Defined in:
lib/accio/group.rb

Overview

Public: Represents a snippet group (e. g. Ruby, Networking, AWS etc.).

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#snippetsObject

Returns the value of attribute snippets.



4
5
6
# File 'lib/accio/group.rb', line 4

def snippets
  @snippets
end

#titleObject

Returns the value of attribute title.



4
5
6
# File 'lib/accio/group.rb', line 4

def title
  @title
end