lib/gm/notepad/table.rb in gm-notepad-0.0.3 vs lib/gm/notepad/table.rb in gm-notepad-0.0.4
- old
+ new
@@ -42,10 +42,15 @@
end
end
private
- attr_accessor :table_name, :filename, :config
+ attr_accessor :filename, :config
+ attr_reader :table_name
+
+ def table_name=(input)
+ @table_name = input.downcase
+ end
def random_index
rand(@table.size)
end