class Monocle::ListCommand
Attributes
view_names[R]
Public Class Methods
new()
click to toggle source
# 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
Public Instance Methods
call()
click to toggle source
# File lib/monocle/list_command.rb, line 11 def call {}.tap do |hash| view_names.each do |view_name| hash[view_name.to_sym] = View.new(view_name) end end end