Class BlockImpl

All Implemented Interfaces:
Block, ContentNode, StructuralNode

public class BlockImpl extends StructuralNodeImpl implements Block
  • Constructor Details

    • BlockImpl

      public BlockImpl(org.jruby.runtime.builtin.IRubyObject blockDelegate)
  • Method Details

    • lines

      @Deprecated public List<String> lines()
      Deprecated.
      Specified by:
      lines in interface Block
      Returns:
      The original content of this block
    • getLines

      public List<String> getLines()
      Specified by:
      getLines in interface Block
      Returns:
      The original content of this block
    • setLines

      public void setLines(List<String> lines)
      Description copied from interface: Block
      Sets the source lines of the Block.
      Specified by:
      setLines in interface Block
      Parameters:
      lines - The source of this Block, substitutions will still be applied.
    • source

      @Deprecated public String source()
      Deprecated.
      Specified by:
      source in interface Block
      Returns:
      the String containing the lines joined together or null if there are no lines
    • getSource

      public String getSource()
      Specified by:
      getSource in interface Block
      Returns:
      the String containing the lines joined together or null if there are no lines
    • setSource

      public void setSource(String source)
      Description copied from interface: Block
      Sets the source of the Block.
      Specified by:
      setSource in interface Block
      Parameters:
      source - The source of this Block, substitutions will still be applied.