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

#namespace, #namespace_lookup, #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.



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

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

Instance Attribute Details

#filterObject (readonly)

The file filters, Qt style.



48
49
50
# File 'lib/ctioga2/metabuilder/types/strings.rb', line 48

def filter
  @filter
end

Instance Method Details

#type_nameObject



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

def type_name
  return 'file'
end