Module: DDSL::Command::DSL::InstanceMethods

Defined in:
lib/ddsl/command/dsl.rb

Constant Summary collapse

DEFAULT_TRANSFORMER =
->(_x) { [] }

Instance Method Summary collapse

Instance Method Details

#after_blockObject



64
65
66
# File 'lib/ddsl/command/dsl.rb', line 64

def after_block
  search_ancestor_tree_variable(:@after_block)
end

#argumentsObject



60
61
62
# File 'lib/ddsl/command/dsl.rb', line 60

def arguments
  search_ancestor_tree_variable(:@arguments) || DEFAULT_TRANSFORMER
end

#commandObject



72
73
74
# File 'lib/ddsl/command/dsl.rb', line 72

def command
  search_ancestor_tree_variable(:@command)
end

#executableObject



68
69
70
# File 'lib/ddsl/command/dsl.rb', line 68

def executable
  search_ancestor_tree_variable(:@executable)
end

#executable_optionsObject



52
53
54
# File 'lib/ddsl/command/dsl.rb', line 52

def executable_options
  search_ancestor_tree_variable(:@executable_options) || DEFAULT_TRANSFORMER
end

#optionsObject



56
57
58
# File 'lib/ddsl/command/dsl.rb', line 56

def options
  search_ancestor_tree_variable(:@options) || DEFAULT_TRANSFORMER
end