Agile software development using Kanban & Scrum. We code Flex & Ruby on Rails in Auckland, New Zealand.

  • Ruby DSL post that answers (my) age old (2 days in reality) question

    Ruby DSL blocks need access to DSL methods. But which scoping to use?

    Farm.new do 
      animal :kitten
    end
    

    or

    Farm.new do |farm|
      farm.animal :kitten
    end
    

    TL;DR? You can support both!

    Go read Rubylove’s article