Bobochka
2/29/2016 - 8:24 AM

Setting POC

Setting POC

class Setting
  def self.method_missing(method)
    new(method)
  end

  attr_accessor :mod

  def initialize(m)
    self.mod = m
  end

  def method_missing(method)
    crazy_stuff(method)
  end

  def crazy_stuff(method)
    "Setting.#{mod}.#{method}"
  end
end