Sha256: 756860c904e961113659e28a1656eabb9c02ca1befd9b97a720109a27f62d778

Contents?: true

Size: 313 Bytes

Versions: 7

Compression:

Stored size: 313 Bytes

Contents

module HaveAPI::Fs::Components
  class ActionMessage < File
    def initialize(action_dir, *args)
      super(*args)
      @action_dir = action_dir
    end

    def read
      ret = @msg.to_s
      ret += "\n" unless ret.empty?
      ret
    end

    def set(msg)
      changed
      @msg = msg
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
haveapi-fs-0.11.0 lib/haveapi/fs/components/action_message.rb
haveapi-fs-0.10.0 lib/haveapi/fs/components/action_message.rb
haveapi-fs-0.9.0 lib/haveapi/fs/components/action_message.rb
haveapi-fs-0.8.0 lib/haveapi/fs/components/action_message.rb
haveapi-fs-0.7.1 lib/haveapi/fs/components/action_message.rb
haveapi-fs-0.7.0 lib/haveapi/fs/components/action_message.rb
haveapi-fs-0.1.0 lib/haveapi/fs/components/action_message.rb