class Stimulant::List
Attributes
items[R]
Public Class Methods
new(*items)
click to toggle source
# File lib/stimulant/list.rb, line 6 def initialize(*items) @items = items end
Public Instance Methods
+(other)
click to toggle source
# File lib/stimulant/list.rb, line 10 def +(other) List.new(*(@items + other.items)) end
to_json(_opts = nil)
click to toggle source
# File lib/stimulant/list.rb, line 18 def to_json(_opts = nil) items.map(&:to_s).join(" ") end
to_s()
click to toggle source
# File lib/stimulant/list.rb, line 14 def to_s items.join(" ") end