Module: PersonalWordlist::DSL
- Included in:
- PersonalWordlist, Sequence
- Defined in:
- lib/personal_wordlist/dsl.rb,
lib/personal_wordlist/dsl/partial.rb,
lib/personal_wordlist/dsl/sequence.rb
Overview
DSL Syntax Methods
Defined Under Namespace
Instance Method Summary collapse
-
#method_missing(name) ⇒ Object
Map unknown methods to known keys of the input hash.
- #partial(arg = nil, &block) ⇒ Object
- #sequence(range, &block) ⇒ Object
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name) ⇒ Object
Map unknown methods to known keys of the input hash
19 20 21 22 |
# File 'lib/personal_wordlist/dsl.rb', line 19 def method_missing(name) return @personal_data[name.to_sym] if @personal_data.key?(name) fail NoMethodError end |