Class: Builtin

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

Defined Under Namespace

Classes: ArgumentError

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args, config) ⇒ Builtin

Returns a new instance of Builtin.



24
25
26
27
# File 'lib/builtin.rb', line 24

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

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args.



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

def args
  @args
end

#configObject (readonly)

Returns the value of attribute config.



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

def config
  @config
end

Class Method Details

.class_for(name:) ⇒ Object



13
14
15
# File 'lib/builtin.rb', line 13

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

.descriptionObject



9
10
11
# File 'lib/builtin.rb', line 9

def description
	"no description"
end

Instance Method Details

#runObject

Raises:

  • (NotImplementedError)


29
30
31
# File 'lib/builtin.rb', line 29

def run
	raise NotImplementedError
end