Class BlockImpl

    • Constructor Detail

      • BlockImpl

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

      • lines

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

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

        public void setLines​(java.util.List<java.lang.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 java.lang.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 java.lang.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​(java.lang.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.