Sha256: 34a99b867a939a92abe8c680009e9eeca4b38519434d40a714ab860361fb08f3

Contents?: true

Size: 366 Bytes

Versions: 6

Compression:

Stored size: 366 Bytes

Contents

# encoding: utf-8

# WizRft:  A gem for exporting Word Documents in ruby
# using the Microsoft Rich Text Format (RTF) Specification
# Copyright (C) 2015 by sgzhe@163.com

module WizRtf
  class Cmd
    def initialize(name, value = nil)
      @name = name
      @value = value
    end

    def render(io)
      io.cmd @name, @value
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
wiz_rtf-0.6.9 lib/wiz_rtf/cmd.rb
wiz_rtf-0.6.8 lib/wiz_rtf/cmd.rb
wiz_rtf-0.6.7 lib/wiz_rtf/cmd.rb
wiz_rtf-0.6.0 lib/wiz_rtf/cmd.rb
wiz_rtf-0.5.5 lib/wiz_rtf/cmd.rb
wiz_rtf-0.5.0 lib/wiz_rtf/cmd.rb