Class: SM::Flow::LIST
- Inherits:
-
Object
- Object
- SM::Flow::LIST
- Defined in:
- lib/rdoc/markup/simple_markup/to_flow.rb
Instance Attribute Summary collapse
-
#contents ⇒ Object
readonly
Returns the value of attribute contents.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #<<(stuff) ⇒ Object
-
#initialize(type) ⇒ LIST
constructor
A new instance of LIST.
Constructor Details
#initialize(type) ⇒ LIST
Returns a new instance of LIST.
13 14 15 16 |
# File 'lib/rdoc/markup/simple_markup/to_flow.rb', line 13 def initialize(type) @type = type @contents = [] end |
Instance Attribute Details
#contents ⇒ Object (readonly)
Returns the value of attribute contents
12 13 14 |
# File 'lib/rdoc/markup/simple_markup/to_flow.rb', line 12 def contents @contents end |
#type ⇒ Object (readonly)
Returns the value of attribute type
12 13 14 |
# File 'lib/rdoc/markup/simple_markup/to_flow.rb', line 12 def type @type end |
Instance Method Details
#<<(stuff) ⇒ Object
17 18 19 |
# File 'lib/rdoc/markup/simple_markup/to_flow.rb', line 17 def <<(stuff) @contents << stuff end |