Method: Code#non_code_parts
- Defined in:
- lib/code.rb
#non_code_parts ⇒ Enumerable<Object>
Returns non-code parts of this Code introduced with #non_code. See also #map_non_code_parts.
114 115 116 |
# File 'lib/code.rb', line 114 def non_code_parts @parts.select { |part| part.is_a? NonCodePart }.map(&:data) end |