Module: I18n::Tasks::Command::Options::Common
- Includes:
- DSL
- Defined in:
- lib/i18n/tasks/command/options/common.rb
Instance Method Summary collapse
Methods included from DSL
Instance Method Details
#arg_or_pos!(key, opts) ⇒ Object
36 37 38 |
# File 'lib/i18n/tasks/command/options/common.rb', line 36 def arg_or_pos!(key, opts) opts[key] ||= opts[:arguments].try(:shift) end |
#pos_or_stdin!(opts) ⇒ Object
40 41 42 |
# File 'lib/i18n/tasks/command/options/common.rb', line 40 def pos_or_stdin!(opts) opts[:arguments].try(:shift) || $stdin.read end |