Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

two pointless tweaks

  • Loading branch information...
commit 953bb677652228a1e5310e2a2a3941674de52323 1 parent 2b32408
Chris Wanstrath authored

Showing 1 changed file with 3 additions and 7 deletions. Show diff stats Hide diff stats

  1. +3 7 lib/ambition/processors/base.rb
10 lib/ambition/processors/base.rb
@@ -10,18 +10,13 @@ def process_proc(exp)
10 10 end
11 11
12 12 def process_dasgn_curr(exp)
13   - @receiver = exp.first
14   - @receiver.to_s
  13 + (@receiver = exp.first).to_s
15 14 end
16 15 alias_method :process_dasgn, :process_dasgn_curr
17 16
18 17 def process_array(exp)
19 18 # Branch on whether this is straight Ruby or a real array
20   - if ruby = rubify(exp)
21   - ruby
22   - else
23   - exp.map { |m| process(m) }
24   - end
  19 + rubify(exp) || exp.map { |m| process(m) }
25 20 end
26 21
27 22 def process_str(exp)
@@ -102,6 +97,7 @@ def translator
102 97 def self.translator(context, name = nil)
103 98 # Grok the adapter name
104 99 name ||= self.name.split('::').last
  100 +
105 101 # Get the module for it
106 102 klass = context.owner.ambition_adapter.const_get(name)
107 103 instance = klass.new

0 comments on commit 953bb67

Please sign in to comment.
Something went wrong with that request. Please try again.