Sha256: 8b4b03c07c865678e121a4cf1f9652b4bf0c86215ad13006e9ab34ece235763c

Contents?: true

Size: 262 Bytes

Versions: 2

Compression:

Stored size: 262 Bytes

Contents

module Nuker
  class Feature
    include MongoMapper::EmbeddedDocument

    key :path, String
    key :gherkin, Hash
    key :name, String

    before_save :save_feature_name

    private
    def save_feature_name
      @name = gherkin["name"]
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
nuker-2.0.0 lib/nuker/feature.rb
nuker-1.0.0 lib/nuker/feature.rb