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.60.7 lib/origen/features/feature.rb
origen-0.60.6 lib/origen/features/feature.rb
origen-0.60.5 lib/origen/features/feature.rb
origen-0.60.4 lib/origen/features/feature.rb
origen-0.60.3 lib/origen/features/feature.rb
origen-0.60.2 lib/origen/features/feature.rb
origen-0.60.1 lib/origen/features/feature.rb
origen-0.60.0 lib/origen/features/feature.rb
origen-0.59.8 lib/origen/features/feature.rb
origen-0.59.7 lib/origen/features/feature.rb
origen-0.59.6 lib/origen/features/feature.rb
origen-0.59.5 lib/origen/features/feature.rb
origen-0.59.4 lib/origen/features/feature.rb
origen-0.59.3 lib/origen/features/feature.rb
origen-0.59.2 lib/origen/features/feature.rb
origen-0.59.1 lib/origen/features/feature.rb
origen-0.59.0 lib/origen/features/feature.rb
origen-0.58.0 lib/origen/features/feature.rb
origen-0.57.2 lib/origen/features/feature.rb
origen-0.57.1 lib/origen/features/feature.rb