Class: CTioga2::MetaBuilder::Types::FileParameter
- Inherits:
-
StringParameter
- Object
- CTioga2::MetaBuilder::Type
- StringParameter
- CTioga2::MetaBuilder::Types::FileParameter
- Defined in:
- lib/ctioga2/metabuilder/types/strings.rb
Overview
A piece of text representing the path to a file.
Instance Attribute Summary collapse
-
#filter ⇒ Object
readonly
The file filters, Qt style.
Attributes inherited from CTioga2::MetaBuilder::Type
#namespace, #namespace_lookup, #passthrough, #re_shortcuts, #shortcuts, #type
Instance Method Summary collapse
-
#initialize(type) ⇒ FileParameter
constructor
A new instance of FileParameter.
- #type_name ⇒ Object
Methods inherited from StringParameter
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
#filter ⇒ Object (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_name ⇒ Object
55 56 57 |
# File 'lib/ctioga2/metabuilder/types/strings.rb', line 55 def type_name return 'file' end |