Eg.
object file:
class RubyApplicationSkeletonCreator
def initialize(application_name)
...
end
...
end
blueprint:
RubyApplicationSkeletonCreator.blueprint do
end
use:
RubyApplicationSkeletonCreator.make('a_name') # with or without
argument
Output:
wrong number of arguments (0 for 1)
Thanks
Sean
There's no support for doing this in Machinist at the moment.
If you want to figure out how to add it, the place to start looking is
in lib/machinist/object.rb
- Pete
Thanks! I added the functionality with passing specs at
http://github.com/lotusone/machinist.
- Sean