Class: Typingpool::Config::Root::Assign::Qualification
- Inherits:
-
Typingpool::Config
- Object
- Typingpool::Config
- Typingpool::Config::Root::Assign::Qualification
- Defined in:
- lib/typingpool/config/root.rb
Instance Method Summary collapse
-
#initialize(spec) ⇒ Qualification
constructor
A new instance of Qualification.
- #to_arg ⇒ Object
- #to_s ⇒ Object
Methods inherited from Typingpool::Config
#[], #[]=, default_file, define_accessor, define_reader, define_writer, file, from_bundled_template, inherited, local_path_reader, #method_missing, never_ends_in_slash_reader, subklass?, time_accessor, #to_hash
Constructor Details
#initialize(spec) ⇒ Qualification
Returns a new instance of Qualification.
57 58 59 60 |
# File 'lib/typingpool/config/root.rb', line 57 def initialize(spec) @raw = spec to_arg #make sure value parses end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Typingpool::Config
Instance Method Details
#to_arg ⇒ Object
66 67 68 |
# File 'lib/typingpool/config/root.rb', line 66 def to_arg [type, opts] end |
#to_s ⇒ Object
62 63 64 |
# File 'lib/typingpool/config/root.rb', line 62 def to_s @raw end |