lib/lolp.rb in lolp-0.1.0 vs lib/lolp.rb in lolp-0.2.0

- old
+ new

@@ -1,5 +1,18 @@ -require "lolp/version" +require 'lolp/version' +require 'lolp/client' module Lolp - # Your code goes here... + class << self + def client + @client ||= Lolp::Client.new + end + + def method_missing(method_name, *args, &block) + if client.respond_to?(method_name) + return client.send(method_name, *args, &block) + end + + super + end + end end