Class: Bashy::List
- Inherits:
-
Object
- Object
- Bashy::List
- Defined in:
- lib/bashy.rb
Instance Attribute Summary collapse
-
#snippets ⇒ Object
readonly
Returns the value of attribute snippets.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ List
constructor
A new instance of List.
Constructor Details
#initialize(options = {}) ⇒ List
Returns a new instance of List.
78 79 80 81 82 83 |
# File 'lib/bashy.rb', line 78 def initialize( = {}) # Check that our directories are in tact. Bashy::check_and_load_config_directory # Set our class accessor for the snippets to the array of our snippets. @snippets = Bashy.config[:snippets] end |
Instance Attribute Details
#snippets ⇒ Object (readonly)
Returns the value of attribute snippets.
76 77 78 |
# File 'lib/bashy.rb', line 76 def snippets @snippets end |