Class: Jake::Helper

Inherits:
Object
  • Object
show all
Defined in:
lib/jake/helper.rb

Overview

The Helper class stores helper methods that can be called from ERB when generating source code. Use jake_helper to define new helpers.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Helper

Returns a new instance of Helper.



8
9
10
# File 'lib/jake/helper.rb', line 8

def initialize(options = {})
  @options = options
end

Instance Attribute Details

#buildObject

Returns the value of attribute build.



5
6
7
# File 'lib/jake/helper.rb', line 5

def build
  @build
end

#optionsObject (readonly)

Returns the value of attribute options.



6
7
8
# File 'lib/jake/helper.rb', line 6

def options
  @options
end

Instance Method Details

#scopeObject



12
# File 'lib/jake/helper.rb', line 12

def scope; binding; end