Module: Gfunc

Extended by:
TopLevel
Defined in:
lib/gfunc/core.rb

Overview

An optional wrapper around TopLevel’s methods to make them namespaced and Class methods

Class Method Summary collapse

Methods included from TopLevel

append_each, d_cont, d_model, file_insert, file_to_a, g_cont, g_model, get_migration_id, has_dot?, has_lower?, has_regex?, has_upper?, is_lower?, is_upper?, locate_def, ls_grep?, migration_status, prepend_each, ror_file_exists?, ror_path, run_migration_file, s_to_file, starts_lower?, starts_upper?, table_exists?, tables, wrap_each

Class Method Details

.puts_methodsObject



191
192
193
# File 'lib/gfunc/core.rb', line 191

def self.puts_methods
  puts TopLevel.instance_methods
end

.source(return_string = false) ⇒ Object



185
186
187
188
189
190
# File 'lib/gfunc/core.rb', line 185

def self.source return_string=false
  unless return_string
    puts File.read(__FILE__)
  else return File.read(__FILE__)
  end
end