Class: Packcr::CodeBlock
- Inherits:
-
Object
- Object
- Packcr::CodeBlock
- Defined in:
- lib/packcr/code_block.rb
Instance Attribute Summary collapse
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text = nil, line = nil, col = nil) ⇒ CodeBlock
constructor
A new instance of CodeBlock.
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
#line ⇒ Object (readonly)
Returns the value of attribute line.
3 4 5 |
# File 'lib/packcr/code_block.rb', line 3 def line @line end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
3 4 5 |
# File 'lib/packcr/code_block.rb', line 3 def text @text end |