class Far::Options
Attributes
options[RW]
Public Class Methods
far_options()
click to toggle source
# File lib/far/options.rb, line 5 def self.far_options [:replace, :no_replace, :please, :no_please] end
new(options={})
click to toggle source
# File lib/far/options.rb, line 9 def initialize(options={}) options.each do |k, v| self[k.to_sym] = Option.new k, v end end
Public Instance Methods
to_command_line()
click to toggle source
# 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