Class: Radiant::Extension::Script::Info
- Inherits:
-
Object
- Object
- Radiant::Extension::Script::Info
- Includes:
- Util
- Defined in:
- lib/radiant/extension/script.rb
Instance Attribute Summary
Attributes included from Util
Instance Method Summary collapse
-
#initialize(args = []) ⇒ Info
constructor
A new instance of Info.
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.
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 |