Class: RDocF95::Markup::Flow::LIST

Inherits:
Object
  • Object
show all
Defined in:
lib/rdoc-f95/markup/to_flow.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type) ⇒ LIST

Returns a new instance of LIST.



14
15
16
17
# File 'lib/rdoc-f95/markup/to_flow.rb', line 14

def initialize(type)
  @type = type
  @contents = []
end

Instance Attribute Details

#contentsObject (readonly)

Returns the value of attribute contents.



13
14
15
# File 'lib/rdoc-f95/markup/to_flow.rb', line 13

def contents
  @contents
end

#typeObject (readonly)

Returns the value of attribute type.



13
14
15
# File 'lib/rdoc-f95/markup/to_flow.rb', line 13

def type
  @type
end

Instance Method Details

#<<(stuff) ⇒ Object



18
19
20
# File 'lib/rdoc-f95/markup/to_flow.rb', line 18

def <<(stuff)
  @contents << stuff
end