I've used it for a bunch of sites, and almost all of them
I've customized most of them. The development is stable, they commit pretty
often, which sometimes is frustrating... Lots of migrations. and
time revving the refinery itself.
I don't know if they changed, but their image management s***ed.
Adam, just a thought --- with JRuby becoming such a solid deployment
platform for Rails app, it opens up lots of possibilities to tightly
integrate some really solid Java-based CMS systems (like
http://www.magnolia-cms.com) into a Rails app.
Regards,
John Lynch
Rigel Group, LLC
I'm building a HTML extractor on top of nokogiri which applies a
collection of CSS search strings and more to build a logical
extraction of data and I wanted to use something like this:
[1,2,3].send(:collect,Proc.new{|x| x.to_s + !})
This fails. Any ideas how I could work around this? How do you
You're just missing one character:
[1,2,3].send(:collect, Proc.new{|x| x.to_s + !})
will pass that proc object in as a block to the method.
--
Ben Hughes
http://benhugh.es/
On Mon, Jan 31, 2011 at 4:50 PM, Xavier Lange xrla...@gmail.com wrote:
I'm building a HTML extractor on top of
Ben,
So that works when it's being passed directly to send but it won't
work when passed in from a splatted array!
[1,2,3].send(*[:collect, Proc.new{|x| x.to_s + !}])
- SyntaxError: (irb):1: expecting ']'
That doesn't work because you can't put a block in an array:
[:collect,
You can also use a lambda:
ruby-1.9.2-p136 :004 [:collect, lambda { |x| x.to_s + ! }]
= [:collect, #Proc:0x01009a29b8@(irb):4 (lambda)]
On Mon, Jan 31, 2011 at 7:34 PM, Kevin Clark kevin.cl...@gmail.com wrote:
Ben,
So that works when it's being passed directly to send but it won't
Oh wait, I missed the part about needing an anonymous block. Hmm...
On Mon, Jan 31, 2011 at 7:41 PM, Jordan Fowler m...@jordanfowler.com wrote:
You can also use a lambda:
ruby-1.9.2-p136 :004 [:collect, lambda { |x| x.to_s + ! }]
= [:collect, #Proc:0x01009a29b8@(irb):4 (lambda)]
On
Hey man, what are you up to these days???
Are you still with powerset? How's it working for the man? Are you still in
san jose?
Sent from my iPhone
On Jan 31, 2011, at 7:49 PM, Kevin Clark kevin.cl...@gmail.com wrote:
Yeah, doesn't matter if you could curry it or not - it needs to be
Xavier,
[1,2,3].send(:collect, :block = lambda{|x| x.to_s+!})
That obviously wouldn't work because it's still ambiguous. Oh well.
I'll just extend the nokogiri class! Thanks for playing everyone!
I didn't read the entire thread but that would work:
[1,2,3].map lambda{|x| x.to_s+!}
= [1!,