Class: VimColor::Format_array
- Inherits:
-
Object
- Object
- VimColor::Format_array
- Defined in:
- lib/msgpack/idl/command/vimcolor.rb
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize ⇒ Format_array
constructor
A new instance of Format_array.
- #push(type, text) ⇒ Object
Constructor Details
#initialize ⇒ Format_array
Returns a new instance of Format_array.
140 141 142 |
# File 'lib/msgpack/idl/command/vimcolor.rb', line 140 def initialize @result = [] end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
146 147 148 |
# File 'lib/msgpack/idl/command/vimcolor.rb', line 146 def result @result end |
Instance Method Details
#push(type, text) ⇒ Object
143 144 145 |
# File 'lib/msgpack/idl/command/vimcolor.rb', line 143 def push(type, text) @result.push [type, text] end |