Class: Builtin

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args, config) ⇒ Builtin

Returns a new instance of Builtin.



22
23
24
25
# File 'lib/builtin.rb', line 22

def initialize(args, config)
	@args = args
	@config = config
end

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args.



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

def args
  @args
end

#configObject (readonly)

Returns the value of attribute config.



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

def config
  @config
end

Class Method Details

.class_for(name:) ⇒ Object



11
12
13
# File 'lib/builtin.rb', line 11

def class_for(name:)
	Builtins.const_get(builtin_class_name_for(name: name), false)
end

.descriptionObject



7
8
9
# File 'lib/builtin.rb', line 7

def description
	"no description"
end

Instance Method Details

#runObject

Raises:

  • (NotImplementedError)


27
28
29
# File 'lib/builtin.rb', line 27

def run
	raise NotImplementedError
end