class Roby::DefaultArgument
Placeholder that can be used as an argument to represent a default value
Attributes
value[R]
Public Class Methods
new(value)
click to toggle source
# File lib/roby/task_arguments.rb, line 259 def initialize(value) @value = value end
Public Instance Methods
==(other)
click to toggle source
# File lib/roby/task_arguments.rb, line 278 def ==(other) other.kind_of?(self.class) && other.value == value end
evaluate_delayed_argument(task)
click to toggle source
# File lib/roby/task_arguments.rb, line 263 def evaluate_delayed_argument(task) value end
pretty_print(pp)
click to toggle source
# File lib/roby/task_arguments.rb, line 267 def pretty_print(pp) pp.text to_s end
to_s()
click to toggle source
# File lib/roby/task_arguments.rb, line 271 def to_s "default(" + if value.nil? 'nil' else value.to_s end + ")" end