Class: Monocle::ListCommand
- Inherits:
-
Object
- Object
- Monocle::ListCommand
- Defined in:
- lib/monocle/list_command.rb
Instance Attribute Summary collapse
-
#view_names ⇒ Object
readonly
Returns the value of attribute view_names.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize ⇒ ListCommand
constructor
A new instance of ListCommand.
Constructor Details
#initialize ⇒ ListCommand
Returns a new instance of ListCommand.
7 8 9 |
# File 'lib/monocle/list_command.rb', line 7 def initialize @view_names = Dir[File.join(views_path, "*.sql")].map { |f| File.basename(f, ".sql") } end |
Instance Attribute Details
#view_names ⇒ Object (readonly)
Returns the value of attribute view_names.
5 6 7 |
# File 'lib/monocle/list_command.rb', line 5 def view_names @view_names end |