Class: Far::Options
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Options
constructor
A new instance of Options.
- #to_command_line ⇒ Object
Methods inherited from Hash
Constructor Details
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
3 4 5 |
# File 'lib/far/options.rb', line 3 def @options end |
Class Method Details
.far_options ⇒ Object
5 6 7 |
# File 'lib/far/options.rb', line 5 def self. [:replace, :no_replace, :please, :no_please] end |
Instance Method Details
#to_command_line ⇒ Object
15 16 17 18 19 |
# File 'lib/far/options.rb', line 15 def to_command_line self.reject do |k, v| v.far_option? end.values.map(&:to_command_line).join(" ") end |