Class: WizRtf::Cmd
- Inherits:
-
Object
- Object
- WizRtf::Cmd
- Defined in:
- lib/wiz_rtf/cmd.rb
Instance Method Summary collapse
-
#initialize(name, value = nil) ⇒ Cmd
constructor
A new instance of Cmd.
- #render(io) ⇒ Object
Constructor Details
#initialize(name, value = nil) ⇒ Cmd
Returns a new instance of Cmd.
9 10 11 12 |
# File 'lib/wiz_rtf/cmd.rb', line 9 def initialize(name, value = nil) @name = name @value = value end |
Instance Method Details
#render(io) ⇒ Object
14 15 16 |
# File 'lib/wiz_rtf/cmd.rb', line 14 def render(io) io.cmd @name, @value end |