class DataWorks::Base
Public Class Methods
new()
click to toggle source
# File lib/data_works/base.rb, line 7 def initialize @works = DataWorks::Works.new end
Public Instance Methods
method_missing(method_name, *args, &block)
click to toggle source
we expose the public interface here
# File lib/data_works/base.rb, line 12 def method_missing(method_name, *args, &block) method_name = method_name.to_s if method_name =~ /\A(add_|the_)(\w+)\Z/ || method_name =~ /\A(\w+)(\d+)\Z/ || method_name =~ /\Aset_(current_default|restriction)\Z/ || method_name =~ /\Aclear_(current_default|restriction)_for\Z/ || method_name == 'visualize' @works.send(method_name, *args, &block) else raise NoMethodError.new("#{method_name} method not found in data works") end end