Sha256: b41670ed619041d506ee4925009a51c50ee29c820d03606926b49501a4068a7c

Contents?: true

Size: 263 Bytes

Versions: 5

Compression:

Stored size: 263 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.5.0 lib/boilerpipe/labels/label_action.rb
boilerpipe-ruby-0.4.4 lib/boilerpipe/labels/label_action.rb
boilerpipe-ruby-0.4.3 lib/boilerpipe/labels/label_action.rb
boilerpipe-ruby-0.4.2 lib/boilerpipe/labels/label_action.rb
boilerpipe-ruby-0.4.1 lib/boilerpipe/labels/label_action.rb