Class: Packcr::CodeBlock

Inherits:
Object
  • Object
show all
Defined in:
lib/packcr/code_block.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text = nil, len = 0, line = nil, col = nil) ⇒ CodeBlock

Returns a new instance of CodeBlock.



6
7
8
9
10
11
# File 'lib/packcr/code_block.rb', line 6

def initialize(text = nil, len = 0, line = nil, col = nil)
  @text = text
  @len = len
  @line = line
  @col = col
end

Instance Attribute Details

#lenObject (readonly)

Returns the value of attribute len.



4
5
6
# File 'lib/packcr/code_block.rb', line 4

def len
  @len
end

#lineObject (readonly)

Returns the value of attribute line.



4
5
6
# File 'lib/packcr/code_block.rb', line 4

def line
  @line
end

#textObject (readonly)

Returns the value of attribute text.



4
5
6
# File 'lib/packcr/code_block.rb', line 4

def text
  @text
end