Sha256: f253c2466653d4bbf357ba595d85fd50b088559705fcdfb80e98d3663a74777c

Contents?: true

Size: 455 Bytes

Versions: 196

Compression:

Stored size: 455 Bytes

Contents

module Origen
  module Features
    class Feature
      attr_reader :name
      attr_reader :description

      def initialize(name, options = {})
        @name = name
        @description = options[:description]
      end

      def describe
        return 'No description provided!' if @description == []
        if @description.class == Array
          @description.join(' ')
        else
          @description
        end
      end
    end
  end
end

Version data entries

196 entries across 196 versions & 1 rubygems

Version Path
origen-0.36.1 lib/origen/features/feature.rb
origen-0.36.0 lib/origen/features/feature.rb
origen-0.35.1 lib/origen/features/feature.rb
origen-0.35.0 lib/origen/features/feature.rb
origen-0.34.3 lib/origen/features/feature.rb
origen-0.34.2 lib/origen/features/feature.rb
origen-0.34.1 lib/origen/features/feature.rb
origen-0.34.0 lib/origen/features/feature.rb
origen-0.33.3 lib/origen/features/feature.rb
origen-0.33.2 lib/origen/features/feature.rb
origen-0.33.1 lib/origen/features/feature.rb
origen-0.33.0 lib/origen/features/feature.rb
origen-0.32.1 lib/origen/features/feature.rb
origen-0.32.0 lib/origen/features/feature.rb
origen-0.31.0 lib/origen/features/feature.rb
origen-0.30.0 lib/origen/features/feature.rb
origen-0.29.0 lib/origen/features/feature.rb
origen-0.28.2 lib/origen/features/feature.rb
origen-0.28.1 lib/origen/features/feature.rb
origen-0.28.0 lib/origen/features/feature.rb