Class: Dandelion::Change

Inherits:
Object
  • Object
show all
Defined in:
lib/dandelion/change.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, type, read = nil) ⇒ Change

Returns a new instance of Change.



5
6
7
8
9
# File 'lib/dandelion/change.rb', line 5

def initialize(path, type, read = nil)
  @path = path
  @type = type
  @read = read
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



3
4
5
# File 'lib/dandelion/change.rb', line 3

def path
  @path
end

#typeObject (readonly)

Returns the value of attribute type.



3
4
5
# File 'lib/dandelion/change.rb', line 3

def type
  @type
end

Instance Method Details

#dataObject



11
12
13
# File 'lib/dandelion/change.rb', line 11

def data
  @read.() if @read
end