Class: GoScript::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/go_script/command_group.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(description, path, lineno) ⇒ Command

Returns a new instance of Command.



10
11
12
13
14
# File 'lib/go_script/command_group.rb', line 10

def initialize(description, path, lineno)
  @description = description
  @path = path
  @lineno = lineno
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



8
9
10
# File 'lib/go_script/command_group.rb', line 8

def description
  @description
end

#linenoObject (readonly)

Returns the value of attribute lineno.



8
9
10
# File 'lib/go_script/command_group.rb', line 8

def lineno
  @lineno
end

#pathObject (readonly)

Returns the value of attribute path.



8
9
10
# File 'lib/go_script/command_group.rb', line 8

def path
  @path
end