Class: CTioga2::MetaBuilder::Types::FileParameter

Inherits:
StringParameter show all
Defined in:
lib/ctioga2/metabuilder/types/strings.rb

Overview

A piece of text representing the path to a file.

Instance Attribute Summary collapse

Attributes inherited from CTioga2::MetaBuilder::Type

#passthrough, #re_shortcuts, #shortcuts, #type

Instance Method Summary collapse

Methods inherited from StringParameter

#string_to_type

Methods inherited from CTioga2::MetaBuilder::Type

#boolean?, #default_value, from_string, get_param_type, get_type, #option_parser_long_option, #option_parser_option, #string_to_type, type_name, #type_to_string

Constructor Details

#initialize(type) ⇒ FileParameter

Returns a new instance of FileParameter.



53
54
55
56
# File 'lib/ctioga2/metabuilder/types/strings.rb', line 53

def initialize(type)
  super(type)
  @filter = @type[:filter]
end

Instance Attribute Details

#filterObject (readonly)

The file filters, Qt style.



51
52
53
# File 'lib/ctioga2/metabuilder/types/strings.rb', line 51

def filter
  @filter
end

Instance Method Details

#type_nameObject



58
59
60
# File 'lib/ctioga2/metabuilder/types/strings.rb', line 58

def type_name
  return 'file'
end