Module: Linguist

Defined in:
lib/linguist_ruby.rb,
lib/linguist_ruby/command.rb,
lib/linguist_ruby/helpers.rb,
lib/linguist_ruby/version.rb,
lib/linguist_ruby/models/project.rb,
lib/linguist_ruby/rails3/railtie.rb,
lib/linguist_ruby/models/projects.rb,
lib/linguist_ruby/models/resource.rb,
lib/linguist_ruby/models/collaborator.rb

Defined Under Namespace

Modules: Command, Helpers, Models Classes: Client, Railtie

Constant Summary collapse

VERSION =
"0.0.3"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.environmentsObject

Returns the value of attribute environments.



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

def environments
  @environments
end

.hostObject

Returns the value of attribute host.



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

def host
  @host
end

.projectObject

Returns the value of attribute project.



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

def project
  @project
end

.protocolObject

Returns the value of attribute protocol.



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

def protocol
  @protocol
end

.usernameObject

Returns the value of attribute username.



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

def username
  @username
end

Class Method Details

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Linguist)

    the object that the method was called on



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

def configure
  yield self
end

.default_value?(value) ⇒ Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/linguist_ruby.rb', line 12

def default_value?(value)
  value.start_with?(":")
end