Class: Rubble::Executor::Local::Line

Inherits:
Object
  • Object
show all
Defined in:
lib/rubble/executor/local.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(level, text) ⇒ Line

Returns a new instance of Line.



20
21
22
23
# File 'lib/rubble/executor/local.rb', line 20

def initialize(level, text)
    @level = level
    @text = text.chomp
end

Instance Attribute Details

#levelObject (readonly)

Returns the value of attribute level.



18
19
20
# File 'lib/rubble/executor/local.rb', line 18

def level
  @level
end

#textObject (readonly)

Returns the value of attribute text.



19
20
21
# File 'lib/rubble/executor/local.rb', line 19

def text
  @text
end