class Mok::Element
Attributes
contents[R]
Public Class Methods
new(contents = "")
click to toggle source
# File lib/mokelement.rb, line 38 def initialize(contents = "") @contents = Array(contents) end
Public Instance Methods
add=(content)
click to toggle source
# File lib/mokelement.rb, line 46 def add=(content) @contents.concat(content.lines) end
apply()
click to toggle source
# File lib/mokelement.rb, line 43 def apply @contents end