D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
SM
/
Fragment
/
Filename :
cdesc-Fragment.yaml
back
Copy
--- !ruby/object:RI::ClassDescription attributes: - !ruby/object:RI::Attribute comment: name: level rw: R - !ruby/object:RI::Attribute comment: name: param rw: R - !ruby/object:RI::Attribute comment: name: txt rw: R - !ruby/object:RI::Attribute comment: name: type rw: RW class_methods: - !ruby/object:RI::MethodSummary name: for - !ruby/object:RI::MethodSummary name: new - !ruby/object:RI::MethodSummary name: type_name comment: - !ruby/struct:SM::Flow::P body: A Fragment is a chunk of text, subclassed as a paragraph, a list entry, or verbatim text constants: - !ruby/object:RI::Constant comment: - !ruby/struct:SM::Flow::P body: This is a simple factory system that lets us associate fragement types (a string) with a subclass of fragment name: TYPE_MAP value: "{}" full_name: SM::Fragment includes: [] instance_methods: - !ruby/object:RI::MethodSummary name: add_text - !ruby/object:RI::MethodSummary name: to_s name: Fragment superclass: Object