Sha256: 348f94d9fa9ed798e37bc04394d3e465acef3664152f8f8c87feb386dd4667c0

Contents?: true

Size: 520 Bytes

Versions: 5

Compression:

Stored size: 520 Bytes

Contents

module Micronaut

  class Example
  
    attr_reader :behaviour, :description, :metadata, :example_block
  
    def initialize(behaviour, desc, options, example_block=nil)
      @behaviour, @description, @options, @example_block = behaviour, desc, options, example_block
      @metadata = @behaviour.metadata.dup
      @metadata[:description] = description
      @metadata.update(options)
    end

    def inspect
      "#{behaviour.name} - #{description}"
    end
    
    def to_s
      inspect
    end
  
  end
  
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spicycode-micronaut-0.1.6.1 lib/micronaut/example.rb
spicycode-micronaut-0.1.6.8 lib/micronaut/example.rb
spicycode-micronaut-0.1.6.9.1 lib/micronaut/example.rb
spicycode-micronaut-0.1.6.9 lib/micronaut/example.rb
spicycode-micronaut-0.1.7 lib/micronaut/example.rb