Class: Radiant::Extension::Script::Info

Inherits:
Object
  • Object
show all
Includes:
Util
Defined in:
lib/radiant/extension/script.rb

Instance Attribute Summary

Attributes included from Util

#extension, #extension_name

Instance Method Summary collapse

Methods included from Util

#extension_paths, #find_extension, #installed?, #load_extensions, #registered?, #to_extension_name

Constructor Details

#initialize(args = []) ⇒ Info

Returns a new instance of Info.

Raises:

  • (ArgumentError)


334
335
336
337
338
# File 'lib/radiant/extension/script.rb', line 334

def initialize(args=[])
  raise ArgumentError, "You must specify an extension to get info on" if args.blank?
  self.extension_name = to_extension_name(args.shift)
  find_extension and puts extension.inspect
end