Class: Swift::Playground::CodeSection
- Defined in:
- lib/swift/playground/sections/code_section.rb
Instance Attribute Summary collapse
-
#style ⇒ Object
Returns the value of attribute style.
Attributes inherited from Section
Instance Method Summary collapse
Methods inherited from Section
#filename, #initialize, #path, #render
Methods included from Util::PathOrContent
#derived_filename, #path_or_content_as_io
Constructor Details
This class inherits a constructor from Swift::Playground::Section
Instance Attribute Details
#style ⇒ Object
Returns the value of attribute style.
10 11 12 |
# File 'lib/swift/playground/sections/code_section.rb', line 10 def style @style end |
Instance Method Details
#xcplayground_node(number) ⇒ Object
12 13 14 15 16 |
# File 'lib/swift/playground/sections/code_section.rb', line 12 def xcplayground_node(number) node = super(number) node['style'] = 'setup' if style == 'setup' node end |