Module: Flowerbox

Defined in:
lib/flowerbox.rb,
lib/flowerbox/version.rb

Constant Summary collapse

VERSION =
"0.0.4"

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.enable(env) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/flowerbox.rb', line 7

def self.enable(env)
  if Rails.env == env
    class_eval do
      def flowerbox *objs
        info "=" * 80
        info caller[1]
        objs.each do |o|
          info "-" * 80
          info o.inspect
        end
        info "=" * 80
      end
    end
  end
end

Instance Method Details

#flowerbox(*objs) ⇒ Object



4
5
# File 'lib/flowerbox.rb', line 4

def flowerbox *objs
end