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, line = nil, col = nil) ⇒ CodeBlock

Returns a new instance of CodeBlock.



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

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

Instance Attribute Details

#lineObject (readonly)

Returns the value of attribute line.



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

def line
  @line
end

#textObject (readonly)

Returns the value of attribute text.



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

def text
  @text
end