class Flag

Attributes

flag_name[R]

Public Class Methods

new(flag_name) click to toggle source
# File lib/flag.rb, line 4
def initialize(flag_name)
  @flag_name = flag_name
end

Public Instance Methods

check_flag() click to toggle source
# File lib/flag.rb, line 8
def check_flag
  self.send(flag_name.match(/\A(--)(\S*)/).to_a.last.gsub("-","_").to_sym)
end

Private Instance Methods

method_missing(meth, *args, &block) click to toggle source
# File lib/flag.rb, line 14
def method_missing(meth, *args, &block)
  raise "There is no flag, #{flag_name}\nOur supported flags are currently:#{supported_flags}"
end
no_bootstrap() click to toggle source
# File lib/flag.rb, line 22
def no_bootstrap
  :no_bootstrap
end
supported_flags() click to toggle source
# File lib/flag.rb, line 18
def supported_flags
  ["--no-bootstrap"]
end