module Ryb::DomainSpecificLanguage::Environment
Public Instance Methods
add_binary_path(path)
click to toggle source
# File lib/ryb/dsl.rb, line 80 def add_binary_path(path) @spec.paths ||= Paths.new @spec.paths.binaries = @spec.paths.binaries + [path] end
add_binary_paths(*paths_and_patterns)
click to toggle source
# File lib/ryb/dsl.rb, line 85 def add_binary_paths(*paths_and_patterns) [*paths_and_patterns].each do |path_or_pattern| [*(Dir.glob(path_or_pattern))].each do |path| add_binary_path(path) end end end
add_include_path(path)
click to toggle source
# File lib/ryb/dsl.rb, line 54 def add_include_path(path) @spec.paths ||= Paths.new @spec.paths.includes = @spec.paths.includes + [path] end
add_include_paths(*paths_and_patterns)
click to toggle source
# File lib/ryb/dsl.rb, line 59 def add_include_paths(*paths_and_patterns) [*paths_and_patterns].each do |path_or_pattern| [*(Dir.glob(path_or_pattern))].each do |path| add_include_path(path) end end end
add_library_path(path)
click to toggle source
# File lib/ryb/dsl.rb, line 67 def add_library_path(path) @spec.paths ||= Paths.new @spec.paths.libraries = @spec.paths.libraries + [path] end
add_library_paths(*paths_and_patterns)
click to toggle source
# File lib/ryb/dsl.rb, line 72 def add_library_paths(*paths_and_patterns) [*paths_and_patterns].each do |path_or_pattern| [*(Dir.glob(path_or_pattern))].each do |path| add_library_path(path) end end end