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, #to_extension_name

Constructor Details

#initialize(args = []) ⇒ Info

Returns a new instance of Info.

Raises:

  • (ArgumentError)


288
289
290
291
292
# File 'lib/radiant/extension/script.rb', line 288

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