Class: SM::Flow::LIST

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contentsObject (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

#typeObject (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