Sha256: ab854789eb49bc3c302eb50a062bf7a923d226b243d740d67faf2735c0e94bf3

Contents?: true

Size: 486 Bytes

Versions: 2

Compression:

Stored size: 486 Bytes

Contents

Machinist FAQ
=============
    
### My blueprint is giving me really weird errors. Any ideas?

If your object has an attribute that happens to correspond to a Ruby standard function, it won't work properly in a blueprint. 

For example:

    OpeningHours.blueprint do
      open { Time.now }
    end
    
This will result in Machinist attempting to run ruby's open command. To work around this use self.open instead.

    OpeningHours.blueprint do
      self.open { Time.now }
    end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
JamieFlournoy-machinist-1.0.6 FAQ.markdown
machinist-1.0.6 FAQ.markdown