Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

two pointless tweaks

  • Loading branch information...
commit 953bb677652228a1e5310e2a2a3941674de52323 1 parent 2b32408
Chris Wanstrath authored
Showing with 3 additions and 7 deletions.
  1. +3 −7 lib/ambition/processors/base.rb
10 lib/ambition/processors/base.rb
View
@@ -10,18 +10,13 @@ def process_proc(exp)
end
def process_dasgn_curr(exp)
- @receiver = exp.first
- @receiver.to_s
+ (@receiver = exp.first).to_s
end
alias_method :process_dasgn, :process_dasgn_curr
def process_array(exp)
# Branch on whether this is straight Ruby or a real array
- if ruby = rubify(exp)
- ruby
- else
- exp.map { |m| process(m) }
- end
+ rubify(exp) || exp.map { |m| process(m) }
end
def process_str(exp)
@@ -102,6 +97,7 @@ def translator
def self.translator(context, name = nil)
# Grok the adapter name
name ||= self.name.split('::').last
+
# Get the module for it
klass = context.owner.ambition_adapter.const_get(name)
instance = klass.new
Please sign in to comment.
Something went wrong with that request. Please try again.