Class: Bashy::List

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options = {})
  # 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

#snippetsObject (readonly)

Returns the value of attribute snippets.



76
77
78
# File 'lib/bashy.rb', line 76

def snippets
  @snippets
end