Sha256: e9c239c9ee855102cafb343d0ee41ea39d12fd541682dc3d06678a52e8f7785c

Contents?: true

Size: 261 Bytes

Versions: 5

Compression:

Stored size: 261 Bytes

Contents

module Boilerpipe::Labels
  class LabelAction
    attr_reader :labels

    def initialize(labels=[])
      @labels = labels
    end

    def add_to(text_block)
      text_block.add_labels(@labels)
    end

    def to_s
      @labels.join(',')
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
boilerpipe-ruby-0.4.0 lib/boilerpipe/labels/label_action.rb
boilerpipe-ruby-0.3.0 lib/boilerpipe/labels/label_action.rb
boilerpipe-ruby-0.2.0 lib/boilerpipe/labels/label_action.rb
boilerpipe-ruby-0.1.1 lib/boilerpipe/labels/label_action.rb
boilerpipe-ruby-0.1.0 lib/boilerpipe/labels/label_action.rb